@extends('layouts.pdf-layout') @section('letter_title')
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 |