@if(count($booking) > 0)
{{ csrf_field() }} {{ method_field("put") }}
Cash
Credit card
@php $total = 0; @endphp @foreach($booking as $b) @php $total += $b->getLastSales() ? $b->getLastSales()->getPresentedAmount() : 0; @endphp
{{ $b->stall->alias }}
{{ \App\Models\RateMode::getNameMode($b->stall_mode) }}
@endforeach
Total
$ {{ $total }}
@endif