Kepada : {{ $booking->title }} {{ $booking->nama }}
Dari : {{ @$booking->hotel->nama }}
{{ @$booking->hotel->alamat }}
Telp. {{ @$booking->hotel->telp }} @if (@$booking->hotel->telp1) {{', '.@$booking->hotel->telp1}} @endif @if (@$booking->hotel->telp2) {{', '.@$booking->hotel->telp2}} @endif
Tanggal : {{ formatDate((@$datesystem ?? getsystemDate())) }}
Hal : Proforma Invoice & Confirmation Letter

"Salam hangat dari {{ @$booking->hotel->nama }}"

Terima kasih telah memilih {{ @$booking->hotel->nama }} sebagai tempat menginap selama tinggal di {{@$booking->hotel->city}}, seperti dalam persetujuan, berikut kami konfirmasikan reservasi dengan detail :
{{-- Periode Extend Stay --}} @foreach ($period_lists as $key => $period_list) @if ($key === 0) @continue @endif @endforeach {{-- Closed Periode Extend Stay --}} {{-- --}} @php // defined variable with empty array // group by $group_by_jenis_kamars = array(); $group_by_rate_codes = array(); $group_by_performa_invoices = array(); // lists $jenis_kamar_lists = array(); $rate_code_lists = array(); $performa_invoice_lists = array(); // defined variable with 0 value $total_tagihan_performa_invoice = 0; // check if booking details is not empty if (!@$booking->bookingDetails->isEmpty()) { // foreach booking details for get jenis kamar foreach ($booking->bookingDetails as $key => $booking_detail) { // check if array sub value 0 if ($booking_detail->array_sub === 0 || $booking_detail->array_sub_extend_stay === 0) { // insert value in variable array $group_by_jenis_kamars[$booking_detail->jenis_kamar_id]['nomor_kamar'][] = $booking_detail->nomor_kamar; $group_by_jenis_kamars[$booking_detail->jenis_kamar_id]['jenis_kamar'] = $booking_detail->jenis_kamar; $group_by_rate_codes[$booking_detail->rate_codes]['harga'] = $booking_detail->per_item; $group_by_performa_invoices[$booking_detail->rate_codes]['harga'] = $booking_detail->per_item - $booking_detail->per_item_arr; $group_by_performa_invoices[$booking_detail->rate_codes]['jenis_kamars'][$booking_detail->jenis_kamar_id]['jenis_kamar'] = $booking_detail->jenis_kamar; $group_by_performa_invoices[$booking_detail->rate_codes]['jenis_kamars'][$booking_detail->jenis_kamar_id]['nomor_kamar'][] = $booking_detail->nomor_kamar; // check if value jenis kamar id not available in jenis kamar lists if (!in_array($booking_detail->jenis_kamar_id, $jenis_kamar_lists)) { // insert jenis kamar id in variable array $jenis_kamar_lists[] = $booking_detail->jenis_kamar_id; $performa_invoice_lists[$key]['jenis_kamars'] = $booking_detail->jenis_kamar_id; } // check if value rate code not available in rate code lists if (!in_array($booking_detail->rate_codes, $rate_code_lists)) { // insert rate code in variable array $rate_code_lists[] = $booking_detail->rate_codes; $performa_invoice_lists[$key]['rate_code'] = $booking_detail->rate_codes; } } } } // dd($performa_invoice_lists, $group_by_performa_invoices); @endphp {{-- Single Jumlah kamar --}} {{-- Closed Single Jumlah Kamar --}} {{-- Multiple jumlah kamar --}} @foreach ($jenis_kamar_lists as $key => $jenis_kamar_list) @if ($key == 0) @continue @endif @endforeach {{-- Closed Multiple jumlah kamar --}} @if (!in_array($booking->segmentasi_rate_code, [4, 5])) {{-- Single Harga Kamar --}} {{-- --}} {{-- Closed Single Harga Kamar --}} {{-- Multiple Harga Kamar --}} {{-- @foreach ($rate_code_lists as $key => $rate_code_list) @if ($key == 0) @continue @endif @endforeach --}} {{-- Closed Multiple Harga Kamar --}} @endif {{-- Single Performa Invoice --}} {{-- Non Extend Stay --}} @if ($invoice_performance_lists[0]['extend_stay'] === 0) @php $jumlah_kamar_per_jenis_kamar = $group_by_periods[$invoice_performance_lists[0]['date']]['extend_stay'][0]['jenis_kamars'][$invoice_performance_lists[0]['jenis_kamar_id']]['jumlah_kamar_per_jenis_kamar']; $jenis_kamar = $group_by_periods[$invoice_performance_lists[0]['date']]['extend_stay'][0]['jenis_kamars'][$invoice_performance_lists[0]['jenis_kamar_id']]['data_jenis_kamar']; $total_performa_invoice = $group_by_periods[$invoice_performance_lists[0]['date']]['extend_stay'][0]['jenis_kamars'][$invoice_performance_lists[0]['jenis_kamar_id']]['total_harga_rate_code']; $jumlah_malam = $group_by_periods[$invoice_performance_lists[0]['date']]['jumlah_malam']; $total_tagihan_performa_invoice += $total_performa_invoice; @endphp @endif {{-- Close Non Extend Stay --}} {{-- Extend Stay --}} @if ($invoice_performance_lists[0]['extend_stay'] == 1) @php $jumlah_kamar_per_jenis_kamar = $group_by_periods[$invoice_performance_lists[0]['date']]['extend_stay'][1]['jenis_kamars'][$invoice_performance_lists[0]['jenis_kamar_id']]['jumlah_kamar_per_jenis_kamar']; $jenis_kamar = $group_by_periods[$invoice_performance_lists[0]['date']]['extend_stay'][1]['jenis_kamars'][$invoice_performance_lists[0]['jenis_kamar_id']]['data_jenis_kamar']; $total_performa_invoice = $group_by_periods[$invoice_performance_lists[0]['date']]['extend_stay'][1]['jenis_kamars'][$invoice_performance_lists[0]['jenis_kamar_id']]['total_harga_rate_code']; $jumlah_malam = $group_by_periods[$invoice_performance_lists[0]['date']]['jumlah_malam']; $total_tagihan_performa_invoice += $total_performa_invoice; @endphp @endif {{-- Close Extend Stay --}} {{-- Closed Single Performa Invoice--}} {{-- Multiple Performa Invoice --}} @foreach ($invoice_performance_lists as $key_invoice_performance_list => $invoice_performance_list) @if ($key_invoice_performance_list == 0) @continue @endif @if ($invoice_performance_list['extend_stay'] == 0) {{-- Non Extend Stay --}} @php $jumlah_kamar_per_jenis_kamar = $group_by_periods[$invoice_performance_list['date']]['extend_stay'][$invoice_performance_list['extend_stay']]['jenis_kamars'][$invoice_performance_list['jenis_kamar_id']]['jumlah_kamar_per_jenis_kamar']; $jenis_kamar = $group_by_periods[$invoice_performance_list['date']]['extend_stay'][$invoice_performance_list['extend_stay']]['jenis_kamars'][$invoice_performance_list['jenis_kamar_id']]['data_jenis_kamar']; $total_performa_invoice = $group_by_periods[$invoice_performance_list['date']]['extend_stay'][$invoice_performance_list['extend_stay']]['jenis_kamars'][$invoice_performance_list['jenis_kamar_id']]['total_harga_rate_code']; $jumlah_malam = $group_by_periods[$invoice_performance_list['date']]['jumlah_malam']; $total_tagihan_performa_invoice += $total_performa_invoice; @endphp {{-- Close Non Extend Stay --}} @endif @if ($invoice_performance_list['extend_stay'] == 1) {{-- Extend Stay --}} @php $jumlah_kamar_per_jenis_kamar = $group_by_periods[$invoice_performance_list['date']]['extend_stay'][$invoice_performance_list['extend_stay']]['jenis_kamars'][$invoice_performance_list['jenis_kamar_id']]['jumlah_kamar_per_jenis_kamar']; $jenis_kamar = $group_by_periods[$invoice_performance_list['date']]['extend_stay'][$invoice_performance_list['extend_stay']]['jenis_kamars'][$invoice_performance_list['jenis_kamar_id']]['data_jenis_kamar']; $total_performa_invoice = $group_by_periods[$invoice_performance_list['date']]['extend_stay'][$invoice_performance_list['extend_stay']]['jenis_kamars'][$invoice_performance_list['jenis_kamar_id']]['total_harga_rate_code']; $jumlah_malam = $group_by_periods[$invoice_performance_list['date']]['jumlah_malam']; $total_tagihan_performa_invoice += $total_performa_invoice; @endphp {{-- Close Extend Stay --}} @endif @endforeach {{-- Closed Multiple Performa Invoice--}}
Nama tamu : {{ $booking->title }} {{ $booking->nama }}
Periode : {{ $period_lists[0]['date'] }} ({{ $group_by_periods[$period_lists[0]['date']]['jumlah_malam'] }} malam) {{ $group_by_periods[$period_lists[0]['date']]['jumlah_kamar'] }} Rooms
{{ $period_list['date'] }} ({{ $group_by_periods[$period_list['date']]['jumlah_malam'] }} malam) {{ $group_by_periods[$period_list['date']]['jumlah_kamar'] }} Rooms
{{ formatDate($booking->start_date).' - '.formatDate($booking->end_date) }} ({{ $booking->jml_malam }} malam) {{ $booking->jml_kamar }} Rooms
Jumlah Kamar : {{ count($group_by_jenis_kamars[$jenis_kamar_lists[0]]['nomor_kamar']).' '.$group_by_jenis_kamars[$jenis_kamar_lists[0]]['jenis_kamar']->nama}}
{{ count($group_by_jenis_kamars[$jenis_kamar_lists[$key]]['nomor_kamar']).' '.$group_by_jenis_kamars[$jenis_kamar_lists[$key]]['jenis_kamar']->nama}}
Harga Kamar :Rp. {{ ribuan($group_by_rate_codes[$rate_code_lists[0]]['harga']) }},-nett Room Only @if (count(@$harga_kamars)>0) @foreach ($harga_kamars as $key => $items) @if ($key == 0) @else
@endif @foreach ($items as $k => $item) @if ($k == 0) Room {{$key}} . ) Rp. {{ ribuan($item) }},-nett {{@$rate_kamars[$key]}} @else
Rp. {{ ribuan($item) }},-nett {{@$rate_kamars[$key]}} @endif @endforeach @endforeach @endif
Rp. {{ ribuan($group_by_rate_codes[$rate_code_lists[$key]]['harga']) }},-nett Room Only
Cara Pembayaran : {!! $booking->ket_pembayaran ?? '-' !!}
Performa Invoice :{{ $jumlah_kamar_per_jenis_kamar.' '.$jenis_kamar->nama}} X {{ $jumlah_malam }} Malam = Rp. {{ribuan($total_performa_invoice)}}
{{ $jumlah_kamar_per_jenis_kamar.' '.$jenis_kamar->nama}} X {{ $jumlah_malam }} Malam = Rp. {{ribuan($total_performa_invoice)}}
{{ $jumlah_kamar_per_jenis_kamar.' '.$jenis_kamar->nama}} X {{ $jumlah_malam }} Malam = Rp. {{ribuan($total_performa_invoice)}}
{{ $jumlah_kamar_per_jenis_kamar.' '.$jenis_kamar->nama}} X {{ $jumlah_malam }} Malam = Rp. {{ribuan($total_performa_invoice)}}
Total Tagihan : Rp. {{ ribuan($total_tagihan_performa_invoice) }}
Keterangan
@if (@$booking->hotel->keterangan_registrationform)
@if (@$booking->hotel->keterangan_registrationform) {!! @$booking->hotel->keterangan_registrationform !!} @endif
Atas perhatian dan kerjasamanya kami ucapkan terima kasih
@else @if (count($hotel->rekeningHotels) > 0) @foreach ($hotel->rekeningHotels as $item) @endforeach @endif
- Check in time mulai dari pukul 14.00 dan Check out time hingga pukul 12.00
- Untuk setiap pembatalan dan perubahan reservasi kamar kami terima selambat-lambatnya 1 hari sebelum hari kedatangan.
- Pembayaran dapat dilakukan tunai pada saat check in atau via bank transfer ke rekening kami berikut :
{{ @$item->nama_bank }}
a/n {{ @$item->atas_nama }}
nomor rekening {{ @$item->rekening }}
(bukti transfer mohon untuk dikirim via email atau WhatsApp)
email : {{ @$booking->hotel->email_transfer_bukti }}
WhatsApp : {{ @$booking->hotel->nomor_whatsapp_transfer_bukti }}
Atas perhatian dan kerjasamanya kami ucapkan terima kasih
@endif
Hormat Kami,


{{ @\Auth::user()->nama }}
{{ @\Auth::user()->role ? config('custom.role.'.@\Auth::user()->role) : null }}
{{ @$booking->hotel->alamat }}
e: {{ @$booking->hotel->email }} | t: {{ @$booking->hotel->telp }} | {{ @$booking->hotel->hotel_website}}