{{-- This is all trucks Page --}} @extends('layouts.vertical', ['title' => 'Supervisor Assignment']) @push('head-script') @endpush @push('head-scriptTwo') @endpush @section('content')
| No. | Supervisor Name | Location | Total Freelancers | Status | Options | @forelse ($staffs as $staff)|
|---|---|---|---|---|---|---|
| {{ $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. | ||||||
Private Trucks
{{-- / --}}| No. | Registration Number | Model | Type | Last Location | Status | Options |
|---|
Deactivated Trucks
{{-- / --}}| No. | Truck Number | {{--Plate Number | --}}Supervisor | Truck Type | Last Location | Status | Options |
|---|