@extends('backend.admin.layouts.app') @section('title', ucfirst(Request::segment(2))) @section('content')
Order# ET{{ $order->id }}

Sender Details

@php $sender = App\Models\User::where('id', $order->customer_id)->first(); @endphp
@if (isset($order->user))
Name: {{ $order->user->name }}
Phone: {{ $order->user->phone }}
Email: {{ $order->user->email }}
Country: {{ $order->user->country->name }}
Address: {{ $order->user->address }}
@endif Paid Via: {{ App\Models\BankAccount::where('id', $order->payment_bank_id)->value('bank_name') }}, {{ number_format($order->total) }} {{ $order->currency }}
@if (isset($order->user_wallet)) Paid Via: User Wallet, {{ $order->user_wallet }}
@endif Trx ID: {{ $order->trx_id }}

Bill Detail

@php $billCategory = App\Models\BillCategory::where('id', $order->bill_category_id)->first(); $billCompany = App\Models\UtilityBill::where('id', $order->bill_company_id)->first(); $country = App\Models\Country::where('id', $order->country_id)->first(); @endphp
Category: {{ $billCategory->name }}
Company: {{ $billCompany->name }}
Country: {{ $country->name }}
Currency: {{ $order->bill_currency }}
Amount: {{ number_format($order->bill_amount) }}, Tax: {{ $order->bill_tax }}
Total: {{ number_format($order->bill_amount + $order->bill_tax) }} {{ $order->bill_currency }}
Due Date: {{ $order->due_date }}
Reference#: {{ $order->bill_reference }}

History

@if ($order->status == 'pending') Pending @elseif($order->status == 'approved') Approved @endif
@php $statuses = App\Models\OrderStatus::where('bill_order_id', $order->id)->get(); @endphp @foreach ($statuses as $key => $status) @endforeach
{{ date('d-m-Y H:i:s A', strtotime($status->date_time)) }} {{ $status->status }}

Payment Receipt

Bill Attachment

@endsection