message
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
<div class="card-body">
|
||||
<div class="d-flex justify-content-between align-items-start">
|
||||
<div>
|
||||
<h4 class="fw-bold mb-0">Orders Details</h4>
|
||||
<small class="text-muted">Detailed view of all orders in this shipment consolidation.</small>
|
||||
<h4 class="fw-bold mb-0">Order Details</h4>
|
||||
<small class="text-muted">Detailed view of this shipment order</small>
|
||||
</div>
|
||||
<a href="{{ route('admin.dashboard') }}" class="btn-close"></a>
|
||||
</div>
|
||||
@@ -43,61 +43,101 @@
|
||||
{{-- Order Summary --}}
|
||||
<div class="bg-light rounded p-3 mb-3">
|
||||
<div class="row text-center">
|
||||
<div class="col-md-4 border-end">
|
||||
<div class="col-md-3 border-end">
|
||||
<p class="fw-semibold mb-1">Order ID</p>
|
||||
<h6 class="text-primary fw-bold">{{ $order->order_id }}</h6>
|
||||
</div>
|
||||
<div class="col-md-4 border-end">
|
||||
<p class="fw-semibold mb-1">Total Orders</p>
|
||||
<h6>{{ 1 }}</h6>
|
||||
|
||||
<div class="col-md-3 border-end">
|
||||
<p class="fw-semibold mb-1">Mark No</p>
|
||||
<h6>{{ $order->mark_no }}</h6>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
|
||||
<div class="col-md-3 border-end">
|
||||
<p class="fw-semibold mb-1">Total Items</p>
|
||||
<h6>{{ $order->items->count() }}</h6>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<p class="fw-semibold mb-1">Status</p>
|
||||
<span class="badge bg-warning text-dark">{{ ucfirst($order->status) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- Order Table --}}
|
||||
{{-- Origin - Destination --}}
|
||||
<div class="row text-center mb-4">
|
||||
<div class="col-md-6">
|
||||
<p class="mb-1 fw-semibold text-muted">Origin</p>
|
||||
<h6>{{ $order->origin }}</h6>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<p class="mb-1 fw-semibold text-muted">Destination</p>
|
||||
<h6>{{ $order->destination }}</h6>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- Order Items Table --}}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered align-middle">
|
||||
<table class="table table-bordered align-middle text-center">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>Item No</th>
|
||||
<th>#</th>
|
||||
<th>Description</th>
|
||||
<th>CTN</th>
|
||||
<th>QTY</th>
|
||||
<th>TTL/QTY</th>
|
||||
<th>Unit</th>
|
||||
<th>Amount (₹)</th>
|
||||
<th>Price (₹)</th>
|
||||
<th>TTL Amount (₹)</th>
|
||||
<th>CBM</th>
|
||||
<th>TTL CBM</th>
|
||||
<th>KG</th>
|
||||
<th>TTL KG</th>
|
||||
<th>Shop No</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($order->items as $index => $item)
|
||||
<tr>
|
||||
<td>{{ $order->mark_no }}</td>
|
||||
<td>{{ $order->description }}</td>
|
||||
<td>{{ $order->ctn }}</td>
|
||||
<td>{{ $order->qty }}</td>
|
||||
<td>{{ $order->ttl_qty }}</td>
|
||||
<td>{{ $order->unit }}</td>
|
||||
<td>₹{{ number_format($order->ttl_amount, 2) }}</td>
|
||||
<td>{{ $index + 1 }}</td>
|
||||
<td>{{ $item->description }}</td>
|
||||
<td>{{ $item->ctn }}</td>
|
||||
<td>{{ $item->qty }}</td>
|
||||
<td>{{ $item->ttl_qty }}</td>
|
||||
<td>{{ $item->unit }}</td>
|
||||
<td>{{ number_format($item->price, 2) }}</td>
|
||||
<td>{{ number_format($item->ttl_amount, 2) }}</td>
|
||||
<td>{{ $item->cbm }}</td>
|
||||
<td>{{ $item->ttl_cbm }}</td>
|
||||
<td>{{ $item->kg }}</td>
|
||||
<td>{{ $item->ttl_kg }}</td>
|
||||
<td>{{ $item->shop_no }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{-- Totals --}}
|
||||
<div class="d-flex justify-content-between mt-3">
|
||||
<div>
|
||||
<h6 class="text-primary mb-0 fw-bold">{{ $order->ttl_qty }}</h6>
|
||||
<small class="text-muted">Total TTL/QTY</small>
|
||||
<div class="row text-center mt-4">
|
||||
<div class="col-md-3">
|
||||
<h6 class="fw-bold text-primary">{{ $order->ctn }}</h6>
|
||||
<small class="text-muted">Total CTN</small>
|
||||
</div>
|
||||
<div>
|
||||
<h6 class="text-success mb-0 fw-bold">{{ $order->ttl_kg }}</h6>
|
||||
|
||||
<div class="col-md-3">
|
||||
<h6 class="fw-bold text-primary">{{ $order->qty }}</h6>
|
||||
<small class="text-muted">Total QTY</small>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<h6 class="fw-bold text-success">{{ $order->ttl_kg }}</h6>
|
||||
<small class="text-muted">Total TTL KG</small>
|
||||
</div>
|
||||
<div class="text-end">
|
||||
<h6 class="text-danger mb-0 fw-bold">₹{{ number_format($order->ttl_amount, 2) }}</h6>
|
||||
|
||||
<div class="col-md-3">
|
||||
<h6 class="fw-bold text-danger">₹{{ number_format($order->ttl_amount, 2) }}</h6>
|
||||
<small class="text-muted">Total Amount</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user