@extends('admin.layouts.app') @section('page-title', 'Order Details') @section('content') {{-- FULL-WIDTH FLUID CONTAINER --}}
{{-- MAIN CARD --}}
{{-- HEADER SECTION --}}

Order Details

@php $status = strtolower($order->status ?? ''); @endphp

Detailed view of this shipment order

{{-- ADD ITEM BUTTON --}} @can('order.create') @if($status === 'pending') @endif @endcan
{{-- ACTION BUTTONS --}}
@if($status === 'pending')
@csrf @method('DELETE')
@endif
{{-- EDIT ORDER FORM (Hidden by default) --}}
{{-- CUSTOMER INFO --}}
{{ strtoupper(substr($user->customer_name ?? 'U', 0, 1)) }}
{{ $user->customer_name ?? 'Unknown Customer' }}

{{ $user->company_name ?? 'N/A' }}

{{ $user->email ?? '' }}

{{ $user->mobile_no ?? '' }}

{{ $user->address ?? '' }}

{{ $user->pincode ?? '' }}
{{-- ORDER SUMMARY --}}

Order ID

{{ $order->order_id }}

Mark No

{{ $order->mark_no }}

Total Items

{{ $order->items->count() }}

Status

{{ ucfirst($order->status) }}
{{-- ORIGIN / DESTINATION --}}

Origin

{{ $order->origin }}

Destination

{{ $order->destination }}
{{-- ITEMS TABLE --}}
@foreach($order->items as $index => $item) @endforeach
# Description CTN QTY TTL/QTY Unit Price Total Amount CBM TTL CBM KG TTL KG Shop No Actions
{{ $index + 1 }} {{ $item->description }} {{ $item->ctn }} {{ $item->qty }} {{ $item->ttl_qty }} {{ $item->unit }} {{ number_format($item->price, 2) }} {{ number_format($item->ttl_amount, 2) }} {{ $item->cbm }} {{ $item->ttl_cbm }} {{ $item->kg }} {{ $item->ttl_kg }} {{ $item->shop_no }}
@if($status === 'pending') @can('order.edit') @endcan @can('order.delete')
@csrf @method('DELETE')
@endcan @endif
{{-- TOTALS --}}
{{ $order->ctn }}
Total CTN
{{ $order->qty }}
Total QTY
{{ $order->ttl_kg }}
Total KG
₹{{ number_format($order->ttl_amount, 2) }}
Total Amount
{{-- EDIT ITEM MODALS --}} @foreach($order->items as $item) @endforeach {{-- ADD ITEM MODAL --}} @endsection