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

{{ strtoupper($letter_title) }}


@if($agentDetails) Agent Name: {{ $agentDetails->agents_name }}
Office: {{ $agentDetails->origin_office_name }}
@else No agent details available. @endif
@endsection @section('content')
@foreach ($parcel_informations as $index => $parcel_information) --}} @endforeach
S.N Receipt Sender Parcel Type Receiver From Destination Rate Created At
{{ $index + 1 }} {{ $parcel_information->receipt_no }} {{ strtoupper($parcel_information->sender_name) }} {{ $parcel_information->parcel_type_name }} {{ strtoupper($parcel_information->receiver_name) }} {{ $parcel_information->origin_branch_name }} {{ $parcel_information->destination_branch_name }} {{ number_format($parcel_information->parcel_rate) }} {{ Carbon\Carbon::parse($parcel_information['created_at'])->format('M d, Y - H:m:s') }}
TOTAL @php $total_amount = collect($parcel_informations)->sum('parcel_rate'); echo number_format($total_amount); @endphp
@endsection