@extends('admin.layout.master') @section('custom_style') @endsection @section('content')
@include('frontdesk.bill_print.common_header')
Bill No {{ $booking_info->checkin_code }} رقم الفاتورة
NO.OF.ROOMS {{ $booking_info->get_checkin_info->count() }} عدد الغرف Res No {{ $booking_info->checkin_code }} رقم الحجز
Arrival {{ date('d-m-Y H:i:s', strtotime($booking_info->check_in_date)) }} الوصول
Departure {{ $booking_info->check_out_date ? date('d-m-Y H:i:s', strtotime($booking_info->check_out_date)) : '' }} المغادرة Customer {{ $booking_info->get_agent_info->name_eng }} العميل
@php $sl = 0; $account_amount = 0; @endphp @if($from_accounts->count() > 0) @foreach ($from_accounts as $f) @php $description = ''; $amount = ''; foreach ($f->journalsGlobal as $g){ $description .= ($g->ledger->name ?? "").'
'; $amount .= round($g->amount,2).'
'; $account_amount += $g->amount; } @endphp {{-- --}} @endforeach
Sl Description Ref No. Date Amount
{{ $f->voucher_no }} {{ $f->journalsGlobal->count() }}{{ ++$sl }} {!! $description !!} {{ $f->voucher_no }} {{ date('d-m-Y', strtotime($f->date)) }} {!! $amount !!}
Total {{ round($account_amount,2) }}
@endif @php $rent = $booking_info->get_checkin_info->sum(function($qry){ return $qry->rent * $qry->qty; }); $sl = 0; $debit = $credit = 0; @endphp {{-- --}} @php $debit += $rent; @endphp {{-- --}} @foreach ($booking_info->get_vat_tax_tran as $v) @php $v_amount = calculate_tax($rent,$v->tax_percent,2,$booking_info->tax_percent); // excluding $debit += $v_amount @endphp {{-- --}} @endforeach @php $discount = $accounts_info['total_discount']+$accounts_info['total_commission']; $credit += $discount; @endphp {{-- --}} @php $adjust = $accounts_info['total_advance_deduct']; $credit += $adjust; @endphp {{-- --}} @php $receive = $receipt->sum('amount'); $credit += $receive; @endphp {{-- --}} @php $refund = $accounts_info['total_refund']; $debit += $refund; @endphp {{-- --}} {{-- --}} {{-- --}}
Sl Description Credit DebitCurrency
{{ ++$sl }} Bill {{ number_format($rent,2) }}
{{ ++$sl }} {{ $v->getVatInfo->name }} {{ number_format($v_amount,2) }}
{{ ++$sl }} Discount/Commission {{ number_format($discount, 2) }}
{{ ++$sl }} Advance Adjust {{ number_format($adjust, 2) }}
{{ ++$sl }} Receive {{ number_format($receive, 2) }}
{{ ++$sl }} Refund {{ number_format($refund, 2) }}
{{ ++$sl }} Total {{ number_format($credit, 2) }} {{ number_format($debit, 2) }}
{{ ++$sl }} Balance {{ number_format($debit-$credit,2) }}
@include('frontdesk.report.frontdesk_common_report_setup', ['noDivTableDataHolder'=>1, 'noExcel'=>1]) @endsection