{{-- KOLOM 1 --}}
{{-- KOLOM 2 --}}
{{ $cguest->name }}
{{ $cguest->comp_title }}
{{$cguest->address}}
{{ $cguest->city }}
{{ $cguest->country }}
{{ ribuanWithComma($cguest->creditlimit) }}
{{@$cguest->sales->nama}}
{{$cguest->discount}}
{{ ribuanWithComma($cguest->payment) }}
{{dateFormat($cguest->expired, 'd-m-Y')}}
{{$cguest->phone}}
{{$cguest->telefax}}
{{$cguest->email}}
{{config('custom.segment_ratecodes')[$cguest->main_segment]}}
@if (count($multiRates) > 1)
@foreach ($multiRates as $multi)
@endforeach
@endif
{{@$multi->ratecode->rate_code}} - (Rp. {{ribuanWithComma(@$multi->ratecode->harga)}})
{{($cguest->coa->description ?? '')}}
{{($cguest->source ? config('custom.source')[$cguest->source] : '')}}
@if ($cguest->creditlimit - $total_tagihan < 0)
@if ($cguest->creditlimit != 0)
{{config('custom.status_ledger')[$cguest->status_ledger]}}
Total unpaid bills: Rp. {{ number_format($total_tagihan - $cguest->creditlimit,2,',','.') }}
@else
{{config('custom.status_ledger')[$cguest->status_ledger]}}
@endif
@else
{{config('custom.status_ledger')[$cguest->status_ledger]}}
@endif
{{$cguest->keterangan_ledger}}
@if (is_object($cguest->guest_contact))
@php
$number = 1;
@endphp
@foreach ($cguest->guest_contact as $contact)
@php
$number ++;
@endphp
@endforeach
@endif
{{$contact->name}}
{{$contact->first_name}}
{{$contact->no_kontak}}
{{$contact->alamat}}
{{$cguest->comments}}