diff --git a/resources/views/admin/dashboard.blade.php b/resources/views/admin/dashboard.blade.php index b3a7eed..0945b14 100644 --- a/resources/views/admin/dashboard.blade.php +++ b/resources/views/admin/dashboard.blade.php @@ -1160,6 +1160,101 @@ body, .container-fluid { break-inside: avoid; } } +/* ===================================================== + GLOBAL EDGE-TO-EDGE + ZOOM SAFE PATCH (CSS ONLY) + ===================================================== */ + +/* 1️⃣ Kill boxed layouts on desktop & zoom */ +html, body { + width: 100%; + max-width: 100%; + overflow-x: clip; +} + +/* 2️⃣ Force container-fluid to truly span full width */ +.container-fluid { + width: 100% !important; + max-width: 100% !important; + margin: 0 !important; + padding-left: clamp(12px, 1.8vw, 28px) !important; + padding-right: clamp(12px, 1.8vw, 28px) !important; +} + +/* 3️⃣ Zoom-safe scaling (VERY IMPORTANT) */ +body { + font-size: clamp(14px, 0.95vw, 16px); +} + +/* ===================================================== + DASHBOARD CARD & GRID FIXES (NO HTML CHANGE) + ===================================================== */ + +/* 4️⃣ Make stat grids auto-adjust on zoom */ +.stats-row, +.shipment-totals-row { + display: grid !important; + grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important; + gap: clamp(12px, 1.5vw, 20px) !important; +} + +/* 5️⃣ Prevent hover zoom breaking layout */ +.stats-card:hover, +.card:hover, +.table tbody tr:hover { + transform: translateY(-4px) !important; +} + +/* ===================================================== + TABLE ZOOM FIX (NO MORE CRUSHING / OVERFLOW) + ===================================================== */ + +/* 6️⃣ Tables behave like shipment page */ +.table-responsive { + width: 100%; + overflow-x: auto; +} + +/* 7️⃣ Remove hard min-widths that break zoom */ +.table, +.custom-table-modal, +.shipment-details-table { + width: 100% !important; + min-width: max-content !important; +} + +/* 8️⃣ Let text wrap naturally when zoomed */ +.table td, +.table th { + white-space: nowrap; +} + +/* ===================================================== + MODALS – EDGE TO EDGE WITHOUT TOUCHING MARKUP + ===================================================== */ + +.modal-xl { + max-width: 96vw !important; + width: 96vw !important; + margin: 1vh auto !important; +} + +@media (max-width: 768px) { + .modal-xl { + max-width: 100vw !important; + width: 100vw !important; + margin: 0 !important; + height: 100vh !important; + } +} + +/* ===================================================== + FINAL SAFETY – PREVENT LAYOUT SHRINK ON ZOOM + ===================================================== */ + +* { + box-sizing: border-box; +} +
diff --git a/resources/views/admin/orders_show.blade.php b/resources/views/admin/orders_show.blade.php index ca2b532..e7ca23f 100644 --- a/resources/views/admin/orders_show.blade.php +++ b/resources/views/admin/orders_show.blade.php @@ -3,203 +3,209 @@ @section('page-title', 'Order Details') @section('content') -
+{{-- FULL-WIDTH FLUID CONTAINER --}} +
+
- {{-- HEADER --}} -
-
+ {{-- MAIN CARD --}} +
+
- {{-- TOP BAR --}} -
-
-

Order Details

- @php - $status = strtolower($order->status ?? ''); - @endphp + {{-- HEADER SECTION --}} +
+
+

Order Details

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

Detailed view of this shipment order

+
- Detailed view of this shipment order -
- - {{-- ADD ITEM --}} - @can('order.create') - @if($status === 'pending') - - @endif - @endcan - - - -
- - - - -
- {{-- Edit Order --}} +
+ {{-- ADD ITEM BUTTON --}} + @can('order.create') @if($status === 'pending') - @endif + @endcan - {{-- Delete Order --}} - @if($status === 'pending') -
- @csrf - @method('DELETE') - -
- @endif -
- - - -
- - {{-- EDIT ORDER FORM --}} - - - {{-- 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 ?? '' }} + {{-- ACTION BUTTONS --}} +
+ @if($status === 'pending') + + +
+ @csrf + @method('DELETE') + +
+ @endif
-
- {{-- ORDER SUMMARY --}} -
-
-
-

Order ID

-
{{ $order->order_id }}
+ {{-- 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 ?? '' }}

+
+
- -
-

Mark No

-
{{ $order->mark_no }}
-
- -
-

Total Items

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

Status

- {{ ucfirst($order->status) }} +
+
+

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

+ {{ $user->pincode ?? '' }} +
-
- {{-- ORIGIN / DESTINATION --}} -
-
-

Origin

-
{{ $order->origin }}
+ {{-- ORDER SUMMARY --}} +
+
+
+

Order ID

+
{{ $order->order_id }}
+
+
+
+
+

Mark No

+
{{ $order->mark_no }}
+
+
+
+
+

Total Items

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

Status

+ {{ ucfirst($order->status) }} +
+
-
-

Destination

-
{{ $order->destination }}
+ + {{-- ORIGIN / DESTINATION --}} +
+
+
+

Origin

+
{{ $order->origin }}
+
+
+
+
+

Destination

+
{{ $order->destination }}
+
+
-
- {{-- ITEMS TABLE --}} -
- - - - - - - - - - - - - - - - - - - - - - @foreach($order->items as $index => $item) - - - - - - - - - - - - - - - - + + @endforeach + +
#DescriptionCTNQTYTTL/QTYUnitPriceTotal AmountCBMTTL CBMKGTTL KGShop NoActions
{{ $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') - {{-- EDIT BUTTON --}} + {{-- ITEMS TABLE --}} +
+
+ + + + + + + + + + + + + + + + + + + + + @foreach($order->items as $index => $item) + + + + + + + + + + + + + + + - - - - @endforeach - -
#DescriptionCTNQTYTTL/QTYUnitPriceTotal AmountCBMTTL CBMKGTTL KGShop NoActions
{{ $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 - - {{-- DELETE BUTTON --}} + @can('order.delete')
@endcan - @endif -
-
- - - @foreach($order->items as $item) -
+
+ + {{-- TOTALS --}} +
+
+
{{ $order->ctn }}
+ Total CTN +
+
+
{{ $order->qty }}
+ Total QTY +
+
+
{{ $order->ttl_kg }}
+ Total KG +
+
+
₹{{ number_format($order->ttl_amount, 2) }}
+ Total Amount +
+
+
- @endforeach - - - {{-- TOTALS --}} -
-
-
{{ $order->ctn }}
- Total CTN -
- -
-
{{ $order->qty }}
- Total QTY -
- -
-
{{ $order->ttl_kg }}
- Total KG -
- -
-
₹{{ number_format($order->ttl_amount, 2) }}
- Total Amount -
-
-
-{{-- ADD ITEM MODAL --}} -