@php
$total =0;
@endphp
@foreach($bookings as $booking)
@php
$total+=$booking->total_paid;
@endphp
@endforeach
# |
Customer |
From |
To |
Status |
Nights |
Rooms |
Booking Date |
Total |
Total Paid |
Created By |
Action |
{{ $loop->iteration }} |
{{ $booking->customer->firstname }} {{ $booking->customer->lastname }} |
{{ str_date($booking->start_date) }} |
{{ str_date($booking->end_date) }} |
{!! label($booking->status->name, $booking->status->label) !!} |
{{ $booking->no_of_days }} |
{{ $booking->no_of_rooms }} |
{{ str_date($booking->booking_date) }} |
{{ number_format($booking->total) }} |
{{ number_format($booking->total_paid) }} |
{{ $booking->user->name }} |
|
|
|
|
|
|
|
|
|
Total |
{{ number_format($total,2) }} |
|
|