INVOICE
Booking No: {{ $bookings->first()->booking_no ?? '' }}
Date: {{ \Carbon\Carbon::parse($bookings->first()->created_at)->format('d M, Y') }}
@php
$totalPrice = $bookings->sum('price');
$totalWeight = $bookings->sum('weight');
$totalValue = $bookings->sum('value');
@endphp
| SL NO |
DESCRIPTION OF GOODS |
WEIGHT |
VALUE |
PRICE |
@foreach ($bookings as $booking)
| {{ $loop->iteration }} |
{{ $booking->description }} |
{{ $booking->weight }} |
{{ $booking->value }} |
{{ $booking->price }} |
@endforeach
| TOTAL |
{{ $totalWeight }} |
{{ $totalValue }} |
{{ $totalPrice }} |