@extends('site.layouts.app') @section('title', 'My orders') @section('content')
@include('site.customer.sidebar')
Passport/Nicop Orders
@foreach ($orders as $key => $row) @php $country = App\Models\Country::where('id', $row->country_id)->first(); $category = App\Models\PassportNicopCategory::where('id', $row->category_id)->first(); $plan = App\Models\PassportNicop::where('category_id', $row->category_id)->first(); @endphp @endforeach
Order Date Category Plan Country Status Total Actions
ET{{ $row->id }} {{ date('d-m-Y H:i:s A', strtotime($row->dated)) }} {{ isset($category->name) ? $category->name : '' }} {{ $plan->title }} {{ 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