@extends('admin.layout.master') @section('title','Frontdesk Report || '.$report_title) @section('content') @if($invoices)
| 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')}} | ||||||
| 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}} | |||