@extends("layouts.admin.app") @section("page-title") {{__("Technicians")}} @endSection @section("page-nav-title")

{{__("Technicians Leaders")}}

{{__("All Technicians")}}

@endsection @section("content") @include("includes.dialog") @if(session()->has("technician_register_info")) @include("admin.technician.register_info", ["user" => session()->get("technician_register_info")]) @endif
$page])}}" method="post" id="form-excel"> @csrf {{__("Export As Excel")}}
@if($page == "staff") @endif @foreach($users as $user) @if($page == "staff") @endif @endforeach
{{__("ID")}} {{__("Profile Photo")}} {{__("Name")}} {{__("Username")}} {{__("Phone Number")}} {{__('First Password')}} {{__("Activation")}} {{__("login status")}} {{__("Category")}}{{__("Staff")}} {{__("Number Technician")}}{{__("Rating")}} {{__("Region")}} {{__("Main Specialty")}} {{__("Last Login")}} {{__("Created at")}} {{__("Control")}}
{{$user->id}} @if($user->getFirstMediaFile("profile_photo")) url}}" alt="" width="50px">@endif {{$user->full_name}} {{$user->technician->username}} {{$user->technician->phone_number_1}} {{$user->technician->first_password}} {{$user->technician->accept_order ? __("Active") : __("Non-Active")}} {{$user->technician->login ? __("Login") : __("Logout")}} @switch($user->technician->technician_category) @case(1) {{__("Gold")}} @break @case(2) {{__("Silver")}} @break @case(3) {{__("Bronze")}} @break @endswitch $user->id])}}" class="btn btn-primary">{{__('Control')}} {{count($user->technician->staff)}}
{{$user->technician->region == 1 ? __("كرخ") : __("رصافة") }} {{$user->getAllNameCategory()}} {{$user->last_login != Null ? date("Y/d/m h:i A", strtotime($user->last_login)) : $user->last_login}} {{$user->created_at->diffForHumans()}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} $user->id, "page" => $page])}}" class="control-link edit">
$user->id, "page" => $page])}}" method="post" id="delete{{$user->id}}" style="display: none" data-swal-title="{{__("Delete Technician")}}" data-swal-text="{{__("Are You Sure To Delete This Technician?")}}" data-yes="{{__("Yes")}}" data-no="{{__("No")}}" data-success-msg="{{__("the technician has been deleted successfully")}}">@csrf @method("delete")
@endsection @section("scripts") @if(session()->has("technician_register_info")) @endif @endsection