{{-- This is all trucks Page --}} @extends('layouts.vertical', ['title' => 'Supervisor Assignment']) @push('head-script') @endpush @push('head-scriptTwo') @endpush @section('content')
{{-- Assign Supervisor button --}} {{-- @can('assign-Supervisor') --}} Freelancer {{-- @endcan --}} {{-- / --}} {{-- Print Trucks --}} {{-- Print Assignments

Freelancers

--}}
{{--
@csrf
--}}
{{-- For Active Trucks --}}
{{-- For Alert Messages --}} @if (session('msg')) @endif {{-- / --}} {{-- For All trucks Table --}} {{-- @can('view-trucks') --}}
@forelse ($staffs as $staff) {{-- --}} @empty @endforelse
No. Supervisor Name Location Total Freelancers Options
{{ $loop->iteration }} {{ $staff->fname }} {{ $staff->lname }} {{ $staff->district->name ?? 'Not Available' }} @php $staff_id = $staff->id; $total_freelancers = App\Models\User::whereHas('positions', function($query) use ($staff_id) { $query->where('name', 'Freelancer') ->where('added_by', $staff_id); })->count(); @endphp {{ $total_freelancers }} --}} {{-- @if ($user->status == 1) --}} {{-- Active --}} {{-- @else Inactive @endif --}} {{-- View
No Assignments available.
{{-- @endcan --}} {{-- / --}}
{{-- ./ --}} {{-- For Private Trucks --}}
{{-- start of deactivated Trucks --}} {{-- @can('view-deactivated-trucks') --}}
{{-- For Larger screens --}}

Private Trucks

{{-- / --}} {{-- For small Screens --}}

Private Trucks

{{-- / --}}
{{-- For Alert Messages --}} @if (session('msg1')) @endif {{-- / --}} {{-- For All trucks Table --}} {{-- @can('view-trucks') --}}
No. Registration Number Model Type Status Options
{{-- @endcan --}} {{-- / --}} {{-- @endcan --}} {{-- ./ --}}
{{-- ./ --}} {{-- For Deactivated Trucks --}}
{{-- start of deactivated Trucks --}} @can('view-deactivated-trucks')
{{-- For Larger screens --}}

Deactivated Trucks

{{-- / --}} {{-- For small Screens --}}

Deactivated Trucks

{{-- / --}}
{{-- For Alert Messages --}} @if (session('msg1')) @endif {{-- / --}} {{-- For All trucks Table --}} @can('view-trucks')
{{-- --}}
No. Truck NumberPlate NumberSupervisor Truck Type Last Location Status Options
@endcan {{-- / --}} @endcan {{-- ./ --}}
{{-- ./ --}}
{{-- start of add Truck Modal --}} {{-- ./ --}} {{-- For Assign single truck Supervisor --}}