@extends('backend.layouts.app') @section('title', __('Dashboard')) @section('content') @php $data = parcelData() @endphp
Welcome!

{{ auth()->user()->name }}

Role : Runner

Trip Report
Closed
{{ $picked_trips->count() }}
Picked
{{ $closed_trips->count() }}
Total
{{ $picked_trips->count()+$closed_trips->count() }}
    Total Trip Created By Year
  • {{ date('Y') }}
    {{ $total['current'] }}
  • {{ date('Y')-1 }}
    {{ $total['prev'] }}
Closed Trip

Pick this trip and transfer to their destination(Drop Point Office).

Code
Create At
Total Destination (s)
@if($closed_trips->count() == 0)
No Closed Trip Found
@else @foreach($closed_trips as $trip)
{{ $trip->number }}
{{ reformatDatetime($trip->date, 'M d, Y h:i A') }}
{{ $trip->trips->count() }} Destination(s)
@endforeach @endif
Picked Trip

Notes : Show OTP/QRCode to drop point officer to transfer the trip.

@forelse($picked_trips as $tripBatch) @empty @endforelse
Code Created At Total Parcel Destination
{{ $tripBatch->number }} {{ reformatDatetime($tripBatch->date, 'M d, Y h:i A') }} {{ $tripBatch->parcels->count() }} Parcel(s) @foreach($tripBatch->trips as $trip) @endforeach
Destination Parcel(s)
{{ $trip->destination->name }} {{ $trip->parcels->count() }} @if(auth()->user()->can('staff.runner')) @if($trip->status == \App\Services\Trip\TripHelperService::STATUS_IN_TRANSIT && $trip->runner_id == auth()->user()->id) Transfer @endif @endif
No Picked Trip Found
@endsection @push('after-scripts') @endpush