|
ADMIN DASHBOARD
|
New Order Received
Order
#ZAKH-2025-{{ str_pad($order->cart_id ?? rand(1000, 9999), 4, '0', STR_PAD_LEFT) }}
Customer: {{ $order->address->receiver_name ?? 'Customer' }} | Please
review and confirm
|
|
|
PAYMENT STATUS
@php
$paymentStatus = $order->payment_status ?? 'pending';
$statusColors = [
'completed' => [
'bg' => 'linear-gradient(135deg, #dcfce7, #bbf7d0)',
'text' => '#166534',
'icon' => '✅',
'border' => '#22c55e',
],
'pending' => [
'bg' => 'linear-gradient(135deg, #fef3c7, #fde68a)',
'text' => '#92400e',
'icon' => '⏳',
'border' => '#f59e0b',
],
'failed' => [
'bg' => 'linear-gradient(135deg, #fecaca, #fca5a5)',
'text' => '#991b1b',
'icon' => '❌',
'border' => '#ef4444',
],
'refunded' => [
'bg' => 'linear-gradient(135deg, #e0f2fe, #bae6fd)',
'text' => '#0c4a6e',
'icon' => '🔄',
'border' => '#0ea5e9',
],
];
$statusConfig =
$statusColors[$paymentStatus] ??
$statusColors['pending'];
@endphp
{{ $statusConfig['icon'] }}
{{ strtoupper($paymentStatus) }}
|
PAYMENT METHOD
{{ $order->payment_method ?? 'DIGITAL PAYMENT' }}
|
|
|
👤 Customer Details
{{ $order->address->receiver_name ?? 'Customer Name' }}
@if (isset($order->address->receiver_email))
📧
{{ $order->address->receiver_email }}
@endif
📞
{{ $order->address->receiver_phone ?? '' }}
@if (isset($order->address->alternate_phone) && $order->address->alternate_phone)
| {{ $order->address->alternate_phone }}
@endif
|
|
Order
#ZAKH-2025-{{ str_pad($order->cart_id ?? rand(1000, 9999), 4, '0', STR_PAD_LEFT) }}
{{ $order->order_date ?? now()->format('F j, Y \a\t g:i A') }}
|
📋 Awaiting Review
|
@php
$subtotal = 0;
@endphp
@if (isset($order->orderItems) && $order->orderItems->isNotEmpty())
@foreach ($order->orderItems as $item)
@php
$mrp = $item->variation->mrp ?? 0;
$price = $item->variation->price ?? 0;
$quantity = $item->quantity ?? 1;
$itemTotal = $price * $quantity;
$subtotal += $itemTotal;
$percentOff =
$mrp > 0 && $price > 0
? round((($mrp - $price) / $mrp) * 100)
: 0;
@endphp
 }})
@if ($percentOff > 0)
-{{ $percentOff }}%
@endif
|
{{ $item->product_name ?? 'Product Name' }}
@if (isset($item->variation->variation_attributes) && $item->variation->variation_attributes->isNotEmpty())
@php
$attributes = $item->variation->variation_attributes
->map(function ($attribute) {
return ($attribute
->attribute->attribute
->name ??
'Attribute') .
': ' .
($attribute->attribute
->name ??
'Value');
})
->implode(', ');
@endphp
{{ $attributes }}
@endif
|
QTY: {{ $quantity }}
|
₹{{ number_format($itemTotal, 2) }}
@if ($mrp > $price)
₹{{ number_format($mrp * $quantity, 2) }}
@endif
|
|
|
@endforeach
@else
|
📦
No Items Found
Please check
the order details in admin panel
|
@endif
|
💰 Order Summary
|
Subtotal: |
₹{{ number_format($subtotal, 2) }} |
|
Shipping: |
@if (($order->shipping_cost ?? 0) == 0)
FREE
@else
₹{{ number_format($order->shipping_cost ?? 0, 2) }}
@endif
|
@if (isset($order->coupon_discount) && $order->coupon_discount > 0)
Discount Applied:
@if (isset($order->coupon) && isset($order->coupon->coupon_name))
({{ $order->coupon?->coupon_name }})
@endif
|
-₹{{ number_format($order->coupon_discount, 2) }} |
@endif
|
Total Amount: |
₹{{ number_format($order->total_price ?? 0, 2) }} |
|
@if (isset($order->address))
📦 Delivery Address
{{ $order->address->receiver_name ?? 'Customer Name' }}
@if (isset($order->address->receiver_email))
📧
{{ $order->address->receiver_email }}
@endif
📞
{{ $order->address->receiver_phone ?? '' }}
@if (isset($order->address->alternate_phone) && $order->address->alternate_phone)
| {{ $order->address->alternate_phone }}
@endif
🏠
@if (isset($order->address->house_no))
{{ $order->address->house_no }},
@endif
@if (isset($order->address->society))
{{ $order->address->society }}
@endif
@if (isset($order->address->landmark) && $order->address->landmark)
, Near {{ $order->address->landmark }}
@endif
📍
{{ $order->address->city ?? '' }},
{{ $order->address->state ?? '' }} -
{{ $order->address->pincode ?? '' }}
|
@endif
|
|
Admin Dashboard - Order Management
ZAKH Store - Administrative
Panel
📧
contact@zakh.in | 📞 +91 9910 336 595
© 2025 ZAKH. All rights reserved.
|
|
|