{{ "Invoice" }}

{{ $accommodationName ? $accommodationName: '' }}
{{ $accommodationEmailId ? $accommodationEmailId: '' }}
{{ $accommodationContactNo ? $accommodationContactNo: '' }}
{{ "GST #" }}

{{ $accommodationGstNo ? $accommodationGstNo : '' }}

Guest Folio


Booking No Room No Guest Name C / In C / Out Telephone
{{ $BookingId ? $BookingId: '' }} {{ $RoomName ? $RoomName: '' }} {{ $GuestName ? $GuestName: '' }} {{ $checkIn ? $checkIn: '' }} {{ $checkOut ? $checkOut: '' }} {{ $GuestTelephone ? $GuestTelephone: '' }}




{{-- --}} {{-- @for ($folios as $folio) --}} @php $folios = json_decode($folios, true); $amount = 0; @endphp @foreach($folios as $key => $folio) @php // dd($folio['ChargeTypeId']); // $chargeType = \App\FolioChargeType::where('ChargeTypeId', $folio['ChargeTypeId'])->first(); @endphp @if($folio['FolioStatus'] == 1 || $folio['FolioStatus'] == 2) @php $room = \App\Room::where('RoomId', $folio['RoomId'])->where('AccommodationId', \App\Helpers\CurrentAccommodation::id())->first(); $roomName = $room->RoomName; @endphp @if($folio['Operator'] == '+') @php if(App\Helpers\CurrentAccommodation::name() == 'Marco Polo Resort Skardu'){ $tamount = $folio['Amount'] ; $newAmount = 0; $nAmount = 0; } elseif(App\Helpers\CurrentAccommodation::name() == 'Orangeloft Attabad Lake'){ $tamount = $folio['Amount'] ; $newAmount = 0; $nAmount = 0; } elseif(App\Helpers\CurrentAccommodation::name() == 'Cherry Inn Skardu'){ $tamount = $folio['Amount'] ; $newAmount = 0; $nAmount = 0; } elseif(App\Helpers\CurrentAccommodation::name() == 'Orangeloft Lower Kachura Lake'){ $tamount = $folio['Amount'] ; $newAmount = 0; $nAmount = 0; } elseif(App\Helpers\CurrentAccommodation::name() == 'Marco Polo Resort Kaghan'){ $tamount = $folio['Amount']/1.15 ; $newAmount = $folio['Amount'] - $tamount; $nAmount = floor($newAmount); } elseif(App\Helpers\CurrentAccommodation::name() == 'Orangeloft Frontier'){ $tamount = $folio['Amount']/1.15 ; $newAmount = $folio['Amount'] - $tamount; $nAmount = floor($newAmount); } elseif(App\Helpers\CurrentAccommodation::name() == 'Orangeloft Mahodand Lake'){ $tamount = $folio['Amount']/1.15 ; $newAmount = $folio['Amount'] - $tamount; $nAmount = floor($newAmount); } elseif(App\Helpers\CurrentAccommodation::name() == 'Orangeloft Shogran'){ $tamount = $folio['Amount']/1.15 ; $newAmount = $folio['Amount'] - $tamount; $nAmount = floor($newAmount); } elseif(App\Helpers\CurrentAccommodation::name() == 'Orangeloft Naraan'){ $tamount = $folio['Amount']/1.15 ; $newAmount = $folio['Amount'] - $tamount; $nAmount = floor($newAmount); } elseif(App\Helpers\CurrentAccommodation::name() == 'Orangeloft Wild Life Camping'){ $tamount = $folio['Amount']/1.15 ; $newAmount = $folio['Amount'] - $tamount; $nAmount = floor($newAmount); } elseif(App\Helpers\CurrentAccommodation::name() == 'Orangeloft Mushkpuri'){ $tamount = $folio['Amount']/1.15 ; $newAmount = $folio['Amount'] - $tamount; $nAmount = floor($newAmount); } else{ $tamount = $folio['Amount']/1.16 ; $newAmount = $folio['Amount'] - $tamount; $nAmount = floor($newAmount); } @endphp @if(App\Helpers\CurrentAccommodation::name() == 'Marco Polo Resort Skardu') @elseif(App\Helpers\CurrentAccommodation::name() == 'Orangeloft Attabad Lake') @elseif(App\Helpers\CurrentAccommodation::name() == 'Cherry Inn Skardu') @elseif(App\Helpers\CurrentAccommodation::name() == 'Orangeloft Lower Kachura Lake') @elseif(App\Helpers\CurrentAccommodation::name() == 'Marco Polo Resort Kaghan') @elseif(App\Helpers\CurrentAccommodation::name() == 'Orangeloft Frontier') @elseif(App\Helpers\CurrentAccommodation::name() == 'Orangeloft Mahodand Lake') @elseif(App\Helpers\CurrentAccommodation::name() == 'Orangeloft Shogran') @elseif(App\Helpers\CurrentAccommodation::name() == 'Orangeloft Naraan') @elseif(App\Helpers\CurrentAccommodation::name() == 'Orangeloft Wild Life Camping') @elseif(App\Helpers\CurrentAccommodation::name() == 'Orangeloft Mushkpuri') @else @endif @php $amount += $folio['Amount']; @endphp {{-- --}} @endif @endif @endforeach
Date Charge TypeDescriptionAmount GST Bed Tax Total
{{ $folio['FolioDate'] }} {{ $folio['Description'] }} {{ round($folio['Amount'] , 2) ?: '-' }}{{ round($folio['Amount'] , 2) ?: '-' }}{{ round($folio['Amount'] , 2) ?: '-' }}{{ round($folio['Amount'] , 2) ?: '-' }}{{ round($folio['Amount'] / 1.15, 2) ?: '-' }}{{ round($folio['Amount'] / 1.15, 2) ?: '-' }}{{ round($folio['Amount'] / 1.15, 2) ?: '-' }}{{ round($folio['Amount'] / 1.15, 2) ?: '-' }}{{ round($folio['Amount'] / 1.15, 2) ?: '-' }}{{ round($folio['Amount'] / 1.15, 2) ?: '-' }}{{ round($folio['Amount'] / 1.15, 2) ?: '-' }}{{ round($folio['Amount'] / 1.16, 2) ?: '-' }} {{ $chargeType ? $chargeType->ChargeTypeName: 'no type' }} {{round($newAmount, 2)}} {{ 00.00 }} {{ $folio['Amount'] }}
Grand Total: @php echo $amount; // $balance += $folio['Balance']; @endphp
@php $total = 0; @endphp @foreach($folios as $key => $folio) @if($folio['Operator'] == '-') @if($folio['Operator'] == '-') @php foreach($paymentTypes as $paymentType) { if($paymentType->PaymentTypeId == $folio['PaymentTypeId']) { $paymentMethod = $paymentType->PaymentTypeName; break; } else { $paymentMethod = "None"; } } @endphp @else @endif @php $total += $folio['Amount']; @endphp @endif @endforeach
Date Payment Method Amount
{{ $folio['FolioDate'] }}{{ $paymentMethod}}{{ $paymentMethod }}{{round($folio['Amount'], 2)}}
Grand Total: @php echo $total; @endphp
Balance: @php echo round($amount - $total, 2); @endphp
{{--

Guest


Cashier

--}}


Guest

Cashier




Username: {{ auth()->user()->UserName }}
         User Email: {{ auth()->user()->EmailId }}
         Time: {{ $currentTime ? $currentTime: '' }}