@extends('admin.layouts.master') @section('title', 'Day Collection') @section('content')
| Order Id | Price | Return | Discount | total Epay | total cash | total payment | outstanding amount | Deliveryboy | Status | Delivered Date | payment logs | Action |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $val->orderId}} @php echo date('h:i A, d M', strtotime($val->created_at)) @endphp |
Rs {{ number_format($val->totalPrice,2)}} @php $totalreceive+=floatval($val->totalPrice); @endphp | Rs {{ number_format($val->return_price,2)}} @php $totalreturn_price+=floatval($val->return_price); @endphp | Rs {{ number_format($val->discount,2)}} @php $totaldiscount+=floatval($val->discount); @endphp | Rs {{ number_format(floatval($val->payment_mode['Epay'] ?? 0), 2) }} @php $totalepay += isset($val->payment_mode['Epay']) ? floatval($val->payment_mode['Epay']) : 0; @endphp | Rs {{ number_format(floatval($val->payment_mode['ByCash'] ?? 0), 2) }} @php $totalcash += isset($val->payment_mode['ByCash']) ? floatval($val->payment_mode['ByCash']) : 0; @endphp | @php $tempepay = isset($val->payment_mode['Epay']) ? floatval($val->payment_mode['Epay']) : 0; $tempcash = isset($val->payment_mode['ByCash']) ? floatval($val->payment_mode['ByCash']) : 0; @endphp Rs {{ number_format($tempepay + $tempcash,2)}} | Rs {{ $val->outstandingamount}} | {{ $val->deliveryboy ?? 'N/A'}} | {{ $val->orderStatus ?? 'N/A'}} | {{ $val->delivered_date ?? 'N/A'}} |
Details
|
@if($val->id) @if($val->is_cash_receive==0) Approve @else Received @endif @endif |
| Total | Rs {{number_format($totalreceive,2)}} | Rs {{number_format($totalreturn_price,2)}} | Rs {{number_format($totaldiscount,2)}} | Rs {{number_format($totalepay,2)}} | Rs {{number_format($totalcash,2)}} | Rs {{number_format($totalepay + $totalcash,2)}} | Rs {{number_format($finaloutstandingamount,2)}} |