@extends('layouts.pdf-layout')
@section('letter_title')
{{ strtoupper($letter_title) }}
REPORT DATE: {{ $selectedDateRange }}
PRINTED AT: {{ $print_time }}
@endsection
@section('content')
SN |
ROUTE |
QUANTITY |
TOTAL |
@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
{{ $key + 1 }} |
{{ $item->origin_branch_name }} - {{ $item->destination_branch_name }} |
{{ number_format($item->total_parcels_count) }} |
{{ number_format($item->total_rate) }} |
@endforeach
GRAND TOTAL |
{{ number_format($totalQuantity) }} |
{{ number_format($grandTotal) }} |
@endsection