@extends('site.layouts.app') @section('title', 'My Utility Bill orders') @section('content')
@include('site.customer.sidebar')
Utility Bill Orders
@foreach ($orders as $key => $order) @php $country = App\Models\Country::where('id', $order->country_id)->first(); $bill = App\Models\UtilityBill::where('id', $order->bill_company_id)->first(); @endphp @endforeach
ID Date Country Company Ref# Due date Status Total View
ET{{ $order->id }} {{ date('d-m-Y H:i:s A', strtotime($order->dated)) }} {{ str_replace('_', '', optional($country)->name )}} {{ $bill ? $bill->name : '' }} {{ $order->bill_reference }} {{ $order->due_date }} @if ($order->status == 'pending') Pending @else Approved @endif {{ str_replace('_', '', $order->currency )}} {{ $order->total }} View
{{ $orders->links('pagination::bootstrap-5') }}
@endsection