@extends('admin.templates.layout') @section('content')
@php $kpis = [ ['Total Orders', $stats['total_orders'], 'primary'], ['Active Orders', $stats['active_orders'], 'info'], ['Completed', $stats['completed_orders'], 'success'], ['Cancelled', $stats['cancelled_orders'], 'danger'], ]; @endphp @foreach($kpis as [$label, $v, $c])

{{ $label }}

{{ $v }}

@endforeach
Merchant Information
{{ $merchant->initials }}
{{ $merchant->name }}

{{ $merchant->company_name ?: '-' }}

{!! account_status_badge($merchant->status) !!}

Account
User Code
{{ $merchant->user_code ?: '-' }}
Role
{{ config("global.user_roles.{$merchant->role}") ?: '-' }}
First Name
{{ $merchant->first_name ?: '-' }}
Last Name
{{ $merchant->last_name ?: '-' }}
Email
{{ $merchant->email ?: '-' }}
Phone
{{ ($merchant->dial_code || $merchant->phone) ? '+' . $merchant->dial_code . $merchant->phone : '-' }}
Social Login
{!! $merchant->is_social ? '' . e(ucfirst($merchant->social_type ?: 'social')) . '' : 'No' !!}
Registered
{{ web_date_in_timezone($merchant->created_at, 'M d, Y h:i A') }}

Business
Company
{{ $merchant->company_name ?: '-' }}

Location
City
{{ $merchant->city?->name ?: '-' }}
Country
{{ $merchant->country?->name ?: '-' }}

Approval
Approved
{!! $merchant->approved_at ? 'Yes' : 'No' !!}
Approved At
{{ $merchant->approved_at ? web_date_in_timezone($merchant->approved_at, 'M d, Y h:i A') : '-' }}
Rejected Reason
{{ $merchant->rejected_reason ?: '-' }}
Recent Orders
{{ $orders->count() }} shown
@forelse($orders as $o) @empty @endforelse
Reference Cargo Company Destination Qty Amount Status Date
{{ $o->order_reference }} {{ $o->cargoCompany?->company_name ?: ($o->cargoCompany?->name ?: '-') }} {{ $o->destination_city ?: '-' }} {{ $o->total_items_quantity ?: 0 }} {{ number_format((float) ($o->total_items_amount ?? 0), 2) }} {{ $o->currency ?: 'AED' }} {!! order_status_badge($o->status) !!} {{ web_date_in_timezone($o->created_at, 'M d, Y') }}
No orders yet.
@endsection