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

Visa Orders

@foreach ($orders as $key => $row) @php $country = App\Models\Country::where('id',$row->country_id)->first(); $visa = App\Models\VisaCategory::where('id',$row->visa_category_id)->first(); @endphp @endforeach
# Order# Date Customer Visa Country Visa 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($visa->name) ? $visa->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