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

Legalization Orders

@foreach ($orders as $key => $row) @php $country = App\Models\Country::where('id',$row->country_id)->first(); $legalization = App\Models\LegalizationCategory::where('id',$row->legalization_category_id)->first(); @endphp @endforeach
# Order# Date Customer Legalization Country 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 : '-' }} {{ !empty($legalization->name) ? $legalization->name : '' }} {{ isset($country->name) ? $country->name : '' }} {{ $row->currency }} {{ $row->total }} {{-- @can('Topup Order paid/unpaid') --}} @if ($row->is_paid == 1) Paid @else Unpaid @endif {{-- @endcan --}} @can('Topup order status') @if ($row->status == 'pending') Pending @elseif($row->status == 'approved') Approved @endif @endcan @can('Topup Order view') @endcan @can('Topup Order delete') @endcan
@endsection