@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'Guest Data | Penawaran') @section('content') @php $total_details = $total_payments = 0; @endphp
id}}" method="post"> @csrf @method('put')
Details - {{@$penawaran->guest->name}}
@if (count($penawaran->details)>0) @foreach ($penawaran->details as $key=>$detail) @php $total_details += $detail->total; @endphp @endforeach @endif
Item Description Price
Total : {{ribuanWithComma($total_details)}}
Payment {{--
--}}
@if (count($penawaran->payments)>0) @foreach ($penawaran->payments as $key=>$payment) @php $total_payments += $payment->total; @endphp @endforeach @endif
Payment Period Price
Total : {{ribuanWithComma($total_payments)}}
@endsection @section('js') @endsection