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

{{ strtoupper($letter_title) }}


REPORT DATE: {{ $selectedDateRange }}
PRINTED AT: {{ $print_time }}
@endsection @section('content') @php $grandTotal = 0; $totalQuantity = 0; @endphp @foreach ($data as $key => $item) @php $grandTotal += $item->total_rate; $totalQuantity += $item->total_parcels_count; @endphp @if ($item->origin_branch_name == $item->destination_branch_name){ @continue; } @endif @endforeach
SN ROUTE QUANTITY TOTAL
{{ $key + 1 }} {{ $item->origin_branch_name }} - {{ $item->destination_branch_name }} {{ number_format($item->total_parcels_count) }} {{ number_format($item->total_rate) }}
GRAND TOTAL {{ number_format($totalQuantity) }} {{ number_format($grandTotal) }}
@endsection