@extends('site.layouts.app') @section('title', 'My orders') @section('content')
@include('site.customer.sidebar')
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 Legalization Country legalization Status Total Actions
ET{{ $row->id }} {{ date('d-m-Y H:i:s A', strtotime($row->dated)) }} {{ $legalization->name }} {{ str_replace('_', '', optional($country)->name)}} @if ($row->status == 'pending') Pending @else Approved @endif {{ str_replace('_', '', $row->currency)}} {{ $row->total }} View
{{ $orders->links('pagination::bootstrap-5') }}
@endsection