@extends('layouts.pdf-layout') @section('letter_title')

PARCEL DISPATCH MANIFEST, DATE {{ $date }}

VEHICLE: {{ $vehicle }}
DRIVER: {{ strtoupper($driver) }}
HANDLER: {{ strtoupper($handler) }}
@endsection @section('content')
@foreach ($parcels as $index => $parcel) @endforeach
S.N Pax No Receipt From Destination Consignor Consignee Quantity Rate Mark
{{ $index + 1 }} {{ $parcel->id }} {{ $parcel->tracking_number }} {{ $parcel->parcelInformation && $parcel->parcelInformation->originOffice && $parcel->parcelInformation->originOffice->branch ? $parcel->parcelInformation->originOffice->branch->name : '' }} {{ $parcel->destinationOffice && $parcel->destinationOffice->branch->name ? $parcel->destinationOffice->branch->name : '' }} {{ strtoupper($parcel->parcelInformation->sender->name) }} {{ strtoupper($parcel->receiver ? $parcel->receiver->name : '') }} {{ $parcel->quantity }} {{ number_format($parcel->rate) }}
TOTAL @php $total_rate_amount = collect($parcels)->sum('rate'); echo number_format($total_rate_amount); @endphp
@endsection