@extends('layouts.admin') @section('title', $operator->name) @section('content')

{{ $operator->name }} @include('partials.status', ['status' => $operator->status_id])

Operator #{{ $operator->id }} · since {{ ist($operator->created_at, 'M Y') }}
@include('partials.actions', ['actions' => $actions, 'route' => route('admin.operators.status', $operator), 'id' => 'op'])
Vehicles
@forelse ($operator->vehicles->whereNull('deleted_at') as $v) @empty @endforelse
RegistrationTypeMake / modelCapacityStatus
{{ $v->registration_number }}{{ $v->vehicleType?->name }} {{ trim($v->make.' '.$v->model) ?: '—' }}{{ indian_number($v->capacity_kg) }} kg @include('partials.status', ['status' => $v->status_id])
No vehicles registered.
Drivers
@forelse ($drivers as $d) @php $ur = $d->user->userRoles->first(fn ($r) => $r->role?->code === 'transport_driver'); @endphp @empty @endforelse
DriverLicenceExpiresDriver role
{{ $d->user->displayName() }} {{ $d->licence_number_last4 ? '••••'.$d->licence_number_last4 : '—' }} {{ $d->licence_expires_on?->format('d M Y') ?? '—' }} @include('partials.status', ['status' => $ur?->status_id])
No drivers linked.
Recent bookings
    @forelse ($recentBookings as $b)
  • {{ $b->reference() }}{{ ist($b->pickup_scheduled_at) }} @include('partials.status', ['status' => $b->status_id])
  • @empty
  • None.
  • @endforelse
Details
Owner
{{ $operator->owner->displayName() }}
Phone
{{ $operator->contact_phone ?? '—' }}
Base district
{{ $operator->baseDistrict?->name ?? '—' }}
GSTIN
{{ $operator->gstin ?? '—' }}
Rating
{{ $operator->rating_avg ? $operator->rating_avg.' / 5 ('.$operator->rating_count.')' : '—' }}
@include('partials.history', ['history' => $history])
@endsection