{{ __('Edit Trip') }}

@if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT') @php $isVehicle = auth()->user()->hasRole('Vehicle'); @endphp
@if($isVehicle)
{{ $trip->trip_type }}
@else @endif
@if($isVehicle)
{{ $trip->date->format('d M Y') }}
@else @endif
@if($isVehicle)
{{ $trip->to_date ? $trip->to_date->format('d M Y') : 'N/A' }}
@else @endif
{{ $trip->user_name ?: auth()->user()->name }}
@if($isVehicle)
{{ $trip->vehicle->vehicle_number ?? 'N/A' }}
@else @endif
@if($isVehicle)
{{ $trip->driver->driver_name ?? 'N/A' }}
@else @endif
@if($isVehicle)
{{ $trip->open_km }}
@else @endif

Total KM: KM

@if($isVehicle)
{{ $trip->open_hour }}
@else @endif

Running Time: Hours

@if($isVehicle)
@else @endif

Total Amount: ₹