@extends('admin.layouts.app') @section('title', __('admin.orders.order_hash') . $order->order_num) @section('content')
{{-- Left column --}}
{{ __('admin.orders.order_details') }}
@if($order->promo_code) @endif
{{ __('admin.orders.order_number') }}{{ $order->order_num }}
{{ __('admin.orders.date') }}{{ $order->date?->format('d M Y') }}
{{ __('admin.orders.amount') }}${{ number_format($order->amount, 2) }}
{{ __('admin.orders.payment_method_label') }}{{ $order->payment_method ?? '—' }}
{{ __('admin.orders.promo_code_label') }}{{ $order->promo_code }}
{{ __('admin.orders.ip_address') }}{{ $order->ip_address }}
@if($order->services->count() > 0)
{{ __('admin.orders.services_header') }} ({{ $order->services->count() }})
@foreach($order->services as $svc) @endforeach
{{ __('common.table.product') }}{{ __('common.table.domain') }}{{ __('admin.orders.billing') }}{{ __('common.table.amount') }}{{ __('common.table.status') }}
{{ $svc->product?->name ?? 'N/A' }} {{ $svc->domain ?? '—' }} {{ $svc->billing_cycle }} ${{ number_format($svc->amount, 2) }} {{ ucfirst($svc->status) }}
@endif @if($order->domains->count() > 0)
{{ __('admin.orders.domains_header') }} ({{ $order->domains->count() }})
@foreach($order->domains as $dom) @endforeach
{{ __('common.table.domain') }}{{ __('common.table.type') }}{{ __('admin.orders.expiry') }}{{ __('common.table.status') }}
{{ $dom->domain }} {{ $dom->type }} {{ $dom->expiry_date?->format('d M Y') ?? '—' }} {{ ucfirst($dom->status) }}
@endif @if($order->status === 'Fraud' && $order->fraud_output)
{{ __('admin.orders.fraud_info') }}

{{ $order->fraud_output }}

@endif @if($order->notes)
{{ __('admin.orders.notes') }}
{{ $order->notes }}
@endif
{{-- Right column --}}
@if($order->client)
{{ __('admin.orders.client_info') }}
@if($order->client?->company_name) @endif
{{ __('admin.orders.name') }}client) : "#" }}" style="color:#337ab7;font-weight:600;">{{ $order->client?->display_name ?? "Deleted Client" }}
{{ __('admin.orders.email') }}{{ $order->client?->email ?? "-" }}
{{ __('admin.orders.company') }}{{ $order->client?->company_name }}
@endif
{{ __('admin.orders.actions') }}
@if($order->status === 'Pending')
@csrf
@endif @if(!in_array($order->status, ['Cancelled', 'Fraud']))
@csrf
@endif @if($order->status !== 'Fraud')
@csrf
@endif @if(in_array($order->status, ['Cancelled', 'Fraud', 'Pending']))
@csrf @method('DELETE')
@endif @if($order->invoice) {{ __('admin.orders.view_invoice') }} #{{ $order->invoice->invoice_num }} @endif
@endsection