@extends('admin.layout.master') @section('custom_style') @endsection @section('content') @include('flash-message')
Received From Agent/Local
Receipt List
@error('customer_id') {{$message}} @enderror
@error('company_id') {{ $message }} @enderror
@error('package_type_id') {{ $message }} @enderror
@error('start_date') {{ $message }} @enderror
@error('end_date') {{ $message }} @enderror
@csrf {{-- Due information --}} {{-- Advance List --}} @if ($advance_lists != null)
Advance List
@php $i = 0 @endphp @foreach ($advance_lists as $advance) {{-- @dd( $advance->reservation); --}} @php $i++ ; $advance_refund = resevationHistory(null,null,$advance->fd_invoice_id)['advance_refund']; $after_fefund_advance = $advance->amount - $advance_refund->sum('amount'); $advance_deduct = resevationHistory(null,null,$advance->fd_invoice_id)['advance_deduct']; $remaining_amount = $after_fefund_advance - $advance_deduct->sum('amount'); @endphp @if( $remaining_amount != 0) @endif @endforeach
SL CheckIn No Amount Adjusted Amount Remaining Amount Adjusment Amount Select
{{ $i }} {{$advance->reservation ? $advance->reservation->checkin_code ? $advance->reservation->checkin_code : $advance->reservation->resv_code: null}} {{ $after_fefund_advance }} {{$advance_deduct->sum('amount')}} {{ $remaining_amount}} @if( $remaining_amount > 0)   @endif
@endif {{-- Advance List End --}}
@if ($message = Session::get('sms')) {{ $message }} @endif {{-- Checkin List --}} {{-- @if ($checkin_lists != null) --}}
Checkin List
{{-- --}}
{{-- --}} @php $i = 0 @endphp @foreach ($checkin_lists as $checkin) @php $discount = $checkin->discounts; $total_bill = round($checkin->bills - ($checkin->return_bills + $discount),2); $total_received = $checkin->billl_received ? $checkin->billl_received : 0; $balance = $total_bill - $total_received; @endphp @if($total_bill > $total_received) @php $i++; @endphp @endif @endforeach
SL NO CheckIn No. Total Bill VatTotal Bill Total Recieved Commision Discount Amount Balance
{{ $i }} {{$checkin->checkin_code}} @php @endphp
Grand Total
{{-- @endif --}}
@endsection @section('script') @endsection