@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(date_fmt()) }}
{{ __('admin.orders.amount') }}{{ money_fmt($order->amount) }}
{{ __('admin.orders.payment') }} {{-- The balance is on the line beside it, not under the badge as well. --}} @include('admin.orders.partials.payment-status', ['invoice' => $order->invoice, 'balance' => null]) @if($order->invoice) {{ __('admin.orders.paid_of_total', ['paid' => money_fmt($paid), 'total' => money_fmt($order->invoice->total)]) }}@if($balance > 0) · {{ __('admin.orders.balance_due', ['amount' => money_fmt($balance)]) }}@endif @endif
{{ __('admin.orders.payment_method_label') }}{{ $order->payment_method ? payment_method_label((string) $order->payment_method) : '—' }}
{{ __('admin.orders.promo_code_label') }}{{ $order->promo_code }}
{{ __('admin.orders.ip_address') }}{{ $order->ip_address }}
@include('admin.orders.partials.activation') @if($order->services->count() > 0)
{{ __('admin.orders.services_header') }} ({{ $order->services->count() }})
@foreach($order->services as $svc) @php $svcDomain = $svc->domain ? $clientDomains->get(strtolower($svc->domain)) : null; @endphp @endforeach
#{{ __('common.table.product') }}{{ __('common.table.domain') }}{{ __('admin.orders.billing') }}{{ __('common.table.amount') }}{{ __('common.table.status') }}
#{{ $svc->id }} {{ $svc->product?->name ?? 'N/A' }} {{-- What was ordered with it, each with its own link. --}} @foreach($svc->addons->where('order_id', $order->id) as $addon)
+ {{ $addon->label() }} {{ ucfirst($addon->status) }}
@endforeach @if($svc->sslOrder)
{{ __('admin.orders.ssl_certificate') }}: #{{ $svc->sslOrder->id }}
@endif
@if(strtolower($svc->status) === 'pending' && empty($svc->username))
@csrf @method('PUT')
@elseif($svcDomain) {{ $svc->domain }} @else {{ $svc->domain ?: '—' }} @endif
{{ $svc->billing_cycle }} {{ money_fmt($svc->amount) }} {{ ucfirst($svc->status) }} {{ __('common.actions.view') }}
@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->id }} {{ $dom->domain }} {{ $dom->type }} {{ $dom->expiry_date?->format(date_fmt()) ?? '—' }} {{ ucfirst($dom->status) }} {{ __('common.actions.view') }}
@endif @if(strtolower($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(strtolower($order->status) === 'pending')
@csrf {{-- Accepting again sets up only what is still pending. --}}
@endif @if(! in_array(strtolower($order->status), ['cancelled', 'fraud']))
@csrf
@endif @if(strtolower($order->status) !== 'fraud')
@csrf
@endif @if(in_array(strtolower($order->status), ['cancelled', 'fraud', 'pending']))
@csrf @method('DELETE')
@endif @if($order->invoice) {{ __('admin.orders.view_invoice') }} #{{ $order->invoice->invoice_num }} @endif
@endsection