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; +} +
Detailed view of this shipment order
+{{ $user->company_name ?? 'N/A' }}
-{{ $user->email ?? '' }}
-{{ $user->mobile_no ?? '' }}
+ + +{{ $user->address ?? '' }}
- {{ $user->pincode ?? '' }} + {{-- ACTION BUTTONS --}} +Order ID
-{{ $user->company_name ?? 'N/A' }}
+{{ $user->email ?? '' }}
+{{ $user->mobile_no ?? '' }}
+Mark No
-Total Items
-Status
- {{ ucfirst($order->status) }} +{{ $user->address ?? '' }}
+ {{ $user->pincode ?? '' }} +Origin
-Order ID
+Mark No
+Total Items
+Status
+ {{ ucfirst($order->status) }} +Destination
-Origin
+Destination
+| # | -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')
- {{-- EDIT BUTTON --}}
+ {{-- ITEMS TABLE --}}
+
+
+
-
-
- @foreach($order->items as $item)
-
-
-
+ @endif
+
+ |
+