@extends('layouts.app') @section('content')
| Order No | Billing Type | Amount | Status | Created At | Updated At | Paid Date | Order From | User | Action | ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| #{{ $row->order_no }} |
@php($billingInfo = $billingType->where('id', $row->billing_type)->first())
@if (!empty($billingInfo->name))
{{ strFilter($billingInfo->name) }}
@endif
|
{{ $row->email }}
|
{{ sprintf("$%0.2f", $row->grand_total) }} | @if ($row->status == 'pending') {{ strFilter($row->status) }} @elseif($row->status == 'unpaid') {{ strFilter($row->status) }} @elseif($row->status == 'delete') {{ strFilter($row->status) }} @else {{ strFilter($row->status) }} @endif | {{ !empty($row->created) ? date('d F, Y', strtotime($row->created)) : '' }} | {{ !empty($row->updated) ? date('d F, Y', strtotime($row->updated)) : '' }} | {{ !empty($row->payment_date) ? date('d F, Y', strtotime($row->payment_date)) : '' }} | {{ !empty($row->emailFrom->name) ? strFilter($row->emailFrom->name) : '' }} | {{ $row->admin?->name }} |
|
|
| Total | {{ sprintf("$%0.2f", $allAmount) }} | ||||||||||