@extends('backend.layouts.app') @section('title', __('View Trip')) @section('content')

Trip View

Trip : #{{ $trip->code }}

Back @can('staff.distributor') Master List @endcan @if(auth()->user()->can('staff.distributor') && $trip->status == 0) Add Parcel Close Trip @endif
Trip Information
Trip ID. #{{ $trip->code }}
Destination {{ $trip->destination->name }}
Date {{ reformatDatetime($trip->date, 'd M, Y') }}
Destination Code {{ $trip->destination->coded }}
Parcel Information
Total 1
Pending 1
Received 0
Return 0
Admin Note
+ Add Note
@foreach($trip->remarks as $remark)

{{ $remark->text }}

Added on {{ reformatDatetime($remark->created_at, 'd M,Y') }} at {{ reformatDatetime($remark->created_at, 'H:i A') }} | By {{ $remark->user->name }} @if(auth()->user()->id == $remark->user_id) Delete Note @endif
@endforeach

Parcels

Notes :

@foreach($parcels as $parcel) @endforeach
Tracking No Last Transaction Created At Status
{{ $parcel->lastTransaction->remark }} {{ reformatDatetime($parcel->created_at, 'd-m H:i A') }} {!! $parcel->status_badge !!}
@endsection @push('after-scripts') @endpush