@extends('admin.layout.master') @section('title','Frontdesk Report || '.$report_title) @section('content') @if($invoices)
@section('page_title', "Handover Details") @include('admin.layout.page_title_header_with_print')
@include("frontdesk.report.report_header")
@php $i = 0; $total_refund =0; // dd($invoices); @endphp @foreach ($invoices as $invoice) @php $i++; $getFefund = get_refund([$invoice->fd_invoice_id]); @endphp @endforeach
SL Voucher No Checkin/Resv. No Agent Date Posted By Type Amount
{{ $i }} {{$invoice->fd_invoice->invoice_no}} {{$invoice->reservation->checkin_code ?? $invoice->reservation->resv_code ?? ''}} {{$invoice->reservation ? $invoice->reservation->get_agent_info->name_eng : null}} {{ carbon()->parse($invoice->date)->format('d-m-Y h:i:m A') }} {{ user_name($invoice->created_by)}} @if ( $invoice->voucher_type==1) {{"Advance"}} @elseif ($invoice->voucher_type==4) {{"Bill Receive"}} @elseif ($invoice->voucher_type==5) {{"Refund"}} @else {{"N/A"}} @endif {{round($invoice->amount,2)}}
Total {{$invoices->where('voucher_type','<>',5)->sum('amount') - $invoices->where('voucher_type','=',5)->sum('amount')}}
@endif @endsection {{-- @extends('admin.layout.master') @section('custom_style') @endsection @section('content') @include('flash-message')
@if ($errors->any())
@endif
Invoices Details
@php $i = 0; $total_refund =0 @endphp @foreach ($invoices as $invoice) @php $i++; $getFefund = get_refund([$invoice->fd_invoice_id]); $total_refund +=$getFefund; @endphp @endforeach
SL Voucher No Date Posted By Amount
{{ $i }} {{$invoice->fd_invoice->invoice_no}} {{ carbon()->parse($invoice->date)->format('d-m-Y h:i:m A') }} {{ user_name($invoice->created_by)}} {{$invoice->amount - $getFefund}}
Total {{$invoices->sum('amount')- $total_refund}}
@endsection --}} @section('script') @endsection