@extends('backend.admin.layouts.app') @section('title', ucfirst(Request::segment(2))) @section('content')
{{-- --}}

Utility Bill Orders

@foreach ($orders as $key => $row) @php $country = App\Models\Country::where('id',$row->country_id)->first(); $bill = App\Models\BillCategory::where('id',$row->bill_category_id)->first(); @endphp @endforeach
# Order# Date Customer Country Company Bill Ref# Amount Is Paid Status Action
{{ $key + 1 }} ET{{ $row->id }}
Ref#: {{ $row->reference }}
{{ date('d-m-Y H:i:s a', strtotime($row->dated)) }} {{ isset($row->user) ? $row->user->name : '-' }} {{ isset($country->name) ? $country->name : '' }} {{ $bill->name }} {{ $row->bill_reference }} {{ $row->currency }} {{ $row->total }} @can('Bill order paid/unpaid') @if ($row->is_paid == 1) Paid @else Unpaid @endif @endcan @can('Bill order status') @if ($row->status == 'pending') Pending @elseif($row->status == 'approved') Approved @endif @endcan @can('Bill order view') @endcan @can('Bill order delete') @endcan
@endsection