@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'Company Guest Profile | Edit Company Guest Profile') @section('css') @endsection @section('content')
Data Company Guest Profile
{{-- KOLOM 1 --}}
{{ $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')}}
{{-- KOLOM 2 --}}
{{$cguest->phone}}
{{$cguest->telefax}}
{{$cguest->email}}
{{config('custom.segment_ratecodes')[$cguest->main_segment]}}
@if (count($multiRates) > 1) @foreach ($multiRates as $multi)
{{@$multi->ratecode->rate_code}} - (Rp. {{ribuanWithComma(@$multi->ratecode->harga)}})
@endforeach @endif
{{($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}}
Company Guest Contact
@if (is_object($cguest->guest_contact)) @php $number = 1; @endphp @foreach ($cguest->guest_contact as $contact)
Guest Contacts #{{$number}}
{{$contact->name}}
{{$contact->first_name}}
{{$contact->no_kontak}}
{{$contact->alamat}}
@php $number ++; @endphp @endforeach @endif
{{$cguest->comments}}
@endsection @section('js') @endsection