@section('externalcss') @endsection @if(\Illuminate\Support\Facades\Auth::user()->isAbleTo('reports-read'))
@error('start_date') {{ $message }} @enderror
@error('end_date') {{ $message }} @enderror
@if(sizeof($datatables)>0)
@if($orginfo) @if($orginfo->getOrganization->logo) {{-- @else--}} {{-- --}} @endif @endif
@if($orginfo) {{$orginfo->unit_name}}
@if($orginfo->address != null){{$orginfo->address}},@endif @if($orginfo->city != null) {{$orginfo->city}},@endif @if($orginfo->state != null){{$orginfo->state}},@endif @if($orginfo->country != null){{$orginfo->country}}@endif @if($orginfo->pincode !=null) - {{$orginfo->pincode}}@endif @endif

Transaction Report : @if(strtotime($start_date) == strtotime($end_date)) {{Carbon\Carbon::parse($start_date)->format('d F, Y')}} @else From {{Carbon\Carbon::parse($start_date)->format('d F, Y')}} To {{Carbon\Carbon::parse($end_date)->format('d F, Y')}} @endif

@if(sizeof($datatables)>0) @foreach($datatables as $key => $report) @endforeach @else @endif @if($total_cash>0) @endif @if($total_debitcard_amt>0) @endif @if($total_creditcard_amt>0) @endif @if($total_upi_amt>0) @endif
Serial No. Regd. No. Patient name Paid amount Mode of payment
{{$key+1}} {{$report['reg_no']}} {{$report['patient_name']}} ₹{{$report['paid_amount']}} @if(sizeof($report['mode_of_payment'])>0) @foreach($report['mode_of_payment'] as $payment_mode) @foreach($payment_mode as $key=>$val) @if($key == 'cash') @elseif($key == 'debit_card') @elseif($key == 'credit_card') @elseif($key == 'upi') @endif @endforeach @endforeach @foreach($report['mode_of_payment'] as $payment_mode) @foreach($payment_mode as $key=>$val) @endforeach @endforeach
CashDebit CardCredit CardUPI
₹ {{number_format((float)$val, 2, '.', '')}}
@endif
No Data Available
Total Cash ₹ {{number_format((float)$total_cash, 2, '.', '')}}
Total Debit Card ₹ {{number_format((float)$total_debitcard_amt, 2, '.', '')}}
Total Credit Card ₹ {{number_format((float)$total_creditcard_amt, 2, '.', '')}}
Total UPI ₹ {{number_format((float)($total_upi_amt), 2, '.', '')}}
Grand Total ₹ {{number_format((float)($total_cash+$total_debitcard_amt+$total_creditcard_amt+$total_upi_amt), 2, '.', '')}}
{{-- --}}
@else

No Data Available

@endif
@else

Sorry !!! Unauthorized Access

@endif @section('externaljs') {{-- --}} @endsection