@extends('site.layouts.app') @section('title', 'Order detail') @section('content')
@include('site.customer.sidebar')
@php $statuses = App\Models\OrderStatus::where('visa_order_id', $order->id)->get(); @endphp @php $approvedFound = false; @endphp @foreach ($statuses as $key => $status)
@if ($loop->last && $status->completed == '1') @elseif ($loop->last && $status->completed != '1') @else @endif

{{ date('d-m-Y H:i:s A', strtotime($status->date_time)) }}

{{ $status->status }}

@endforeach
@php $country = App\Models\Country::where('id', $order->country_id)->first(); $visa = App\Models\VisaCategory::where('id', $order->visa_category_id)->first(); @endphp
Order Date Visa Country Visa Status Total
ET{{ $order->id }} {{ date('d-m-Y H:i:s A', strtotime($order->dated)) }} {{ optional($visa)->name }} {{ str_replace('_', '', optional($country)->name) }} @if ($order->status == 'pending') Pending @else Approved @endif {{ $order->currency }} {{ $order->total }}
@if ($order->visa_approval) @endif
Visa Approval
{{ $order->visa_approval }}
@if ($order->is_edit)
@csrf

{!! $order->edit_description !!}

@endif
@endsection