@extends('admin.layout.master') @section('custom_style') @endsection @section('content') @include('flash-message')
@if ($errors->any())
@endif
Received From Agent/Local
Receipt List
{{ Form::open(['route' => ['frontdesk.receipt.receive'], 'method' => 'get', 'class' => 'form-horizontal', 'enctype' => 'multipart/form-data']) }}
@error('customer_id') {{$message}} @enderror {{-- --}}
{{-- {{ Form::select('company_id', $companies, null, ['class' => 'form-control select2', 'id' => 'company_id', 'placeholder' => 'Select Company']) }} --}} @error('company_id') {{ $message }} @enderror
{{ Form::select('package_type_id', $repository->package_types(), null, ['class' => 'form-control select2', 'id' => 'package_type', 'required', 'placeholder' => 'Select Package Type']) }} @error('package_type_id') {{ $message }} @enderror
{{-- {{ Form::text('start_date', request()->start_date ? date('Y-m-d') : date('Y-m-d'), ['class' => 'form-control fd_bs_datepicker', 'id' => 'start_date']) }} --}} @error('start_date') {{ $message }} @enderror
{{-- {{ Form::text('end_date', null, ['class' => 'form-control fd_bs_datepicker', 'id' => 'end_date']) }} --}} @error('end_date') {{ $message }} @enderror
{{ Form::close() }}
{{ Form::open(['route' => ['frontdesk.receipt.store'], 'method' => 'post', 'class' => 'form-horizontal', 'enctype' => 'multipart/form-data']) }} {{-- 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 --}}
{{-- {{ Form::select('receit_type', ['1' => 'Cash', '2' => 'Cheque', '3' => 'Bank'], null, ['class' => 'form-control', 'id' => 'receit_type', 'required', 'placeholder' => 'Select Type']) }} --}}
@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
{{ Form::textarea('remarks', null, ['class' => 'form-control', 'id' => 'remarks','rows'=>1]) }}
{{-- @endif --}}
{{ Form::close() }}
@endsection @section('script') @endsection