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

{{__("Technicians Staff")}}

{{__("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
$leader->id])}}" method="post" id="form-excel"> @csrf {{__("Export As Excel")}}
@foreach($technicians as $technician) @endforeach
{{__("ID")}} {{__("Profile Photo")}} {{__("Name")}} {{__("Username")}} {{__("Phone Number")}} {{__('First Password')}} {{__("Activation")}} {{__("login status")}} {{__("Category")}} {{__("Region")}} {{__("Main Specialty")}} {{__("Last Login")}} {{__("Created at")}} {{__("Control")}}
{{$technician->user->id}} @if($technician->user->getFirstMediaFile("profile_photo")) url}}" alt="" width="50px">@endif {{$technician->user->full_name}} {{$technician->username}} {{$technician->phone_number_1}} {{$technician->first_password}} {{$technician->accept_order ? __("Active") : __("Non-Active")}} {{$technician->login ? __("login") : __("logout")}} @switch($technician->technician_category) @case(1) {{__("Gold")}} @break @case(2) {{__("Silver")}} @break @case(3) {{__("Bronze")}} @break @endswitch {{$technician->region == 1 ? __("كرخ") : __("رصافة") }} {{$technician->user->getAllNameCategory()}} {{$technician->user->last_login != Null ? date("Y/d/m h:i A", strtotime($technician->user->last_login)) : $technician->user->last_login}} {{$technician->user->created_at->diffForHumans()}} $technician->user->id, "leader_id" => $leader->id])}}" class="control-link edit">
$technician->user->id, "leader_id" => $leader->id])}}" method="post" id="delete{{$technician->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