From e479cf41e40134fb82cf19cc2d60bebe90b60efe Mon Sep 17 00:00:00 2001 From: Frank John Begornia Date: Fri, 17 Apr 2026 18:40:47 +0800 Subject: [PATCH] feat: enhance cart layout and styling for improved user experience --- resources/views/sublayouts/cart.blade.php | 324 ++++++++++++++++++---- 1 file changed, 266 insertions(+), 58 deletions(-) diff --git a/resources/views/sublayouts/cart.blade.php b/resources/views/sublayouts/cart.blade.php index 20256fc..4ae3258 100644 --- a/resources/views/sublayouts/cart.blade.php +++ b/resources/views/sublayouts/cart.blade.php @@ -2,15 +2,223 @@ @section('content') -
+
-
+
-

MY CART

+

My Cart

@if(Session::has('cartkeyError'))
@@ -37,11 +245,11 @@
-@if(count($row) > 0) +@if(collect($row)->count() > 0)
-
+
@if(Session::has('msg'))
@@ -49,46 +257,45 @@ {!! Session::get('msg') !!}
@endif -

Order Summary

-
- - @if (!Auth::guest()) - -
+

Order Summary

+ @if (!Auth::guest()) +

Ship to:

@if ($address_book === null) - [ Add ] + [ Add ] @else -
{{ $address_book[0]->Fullname }}
-
{{ $address_book[0]->ContactNumber }}
-
- {{ $address_book[0]->Address . ' ' . $address_book[0]->Address2 . ', ' . $address_book[0]->State . ', ' . $address_book[0]->City . ', ' . $address_book[0]->Country . ', ' . $address_book[0]->CountryCode . ' ' . $address_book[0]->ZipCode }} - [ Edit ] -
+
{{ $address_book[0]->Fullname }}
+
{{ $address_book[0]->ContactNumber }}
+
+ {{ $address_book[0]->Address . ' ' . $address_book[0]->Address2 . ', ' . $address_book[0]->State . ', ' . $address_book[0]->City . ', ' . $address_book[0]->Country . ', ' . $address_book[0]->CountryCode . ' ' . $address_book[0]->ZipCode }} + [ Edit ] +
+ @endif @endif -
- @endif - -
+
{{--

Subtotal: {{ round($getSubtotal, 2) }} {{ $store_array[0]->StoreCurrency }}

--}} -
Subtotal: - {{ number_format($tax['order_grandtotal'], 2) . ' ' . $store_array[0]->StoreCurrency }} -
-
Shipping Fee: - {{ number_format($shipping_fee, 2) . ' ' . $store_array[0]->StoreCurrency }} -
-
Tax: - {{ number_format($tax['tax'], 2) . ' ' . $store_array[0]->StoreCurrency }} -
+
+ Subtotal: + {{ number_format($tax['order_grandtotal'], 2) . ' ' . $store_array[0]->StoreCurrency }} +
+
+ Shipping Fee: + {{ number_format($shipping_fee, 2) . ' ' . $store_array[0]->StoreCurrency }} +
+
+ Tax: + {{ number_format($tax['tax'], 2) . ' ' . $store_array[0]->StoreCurrency }} +

-

Total: {{ number_format($tax['order_grandtotal'] + $shipping_fee + $tax['tax'], 2) }} - {{ $store_array[0]->StoreCurrency }} -

+
+ Total: + {{ number_format($tax['order_grandtotal'] + $shipping_fee + $tax['tax'], 2) }}{{ $store_array[0]->StoreCurrency }} +

-
+
@foreach($row as $item) @if($item->VoucherId != null)
@@ -119,20 +326,20 @@
-
- -
-
-

{{ $store_array[0]->StoreName }}

-
+
+
+

{{ $store_array[0]->StoreName }}

+
@foreach($item_group as $item) @if($item->VoucherId == null) -
+
@@ -144,11 +351,11 @@
-

+

{{ $item->ProductName }}

-

Total Price: {{ $item->total_price . ' ' . $store_array[0]->StoreCurrency }} • Row(s): {{ $item->qty }}

-
+

Total Price: {{ $item->total_price . ' ' . $store_array[0]->StoreCurrency }} • Row(s): {{ $item->qty }}

+
@if($item->FormUsed=="jersey-and-shorts-form") @@ -252,20 +459,20 @@ - + @elseif($item->FormUsed=="tshirt-form") - + @elseif($item->FormUsed=="quantity-form") - + @elseif($item->FormUsed=="name-number-form") @@ -273,7 +480,7 @@ - + @elseif($item->FormUsed=="name-number-size-form") @@ -282,14 +489,14 @@ - + @elseif($item->FormUsed=="number-form") - + @elseif($item->FormUsed=="name-name2-size-form") @@ -298,7 +505,7 @@ - + @elseif($item->FormUsed=="name-size-form") @@ -306,7 +513,7 @@ - + @elseif($item->FormUsed=="jersey-and-shorts-quantity-form") @@ -314,7 +521,7 @@ - + @elseif($item->FormUsed=="number-jersey-shorts-form") @@ -323,7 +530,7 @@ - + @else @@ -338,13 +545,14 @@ @endif @endforeach + @else
-

Your cart is currently empty.

+

Your cart is currently empty.

{{ $sub_item->ShortsSize }} {{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }} {{ $sub_item->Quantity }}
{{ $sub_item->Size }} {{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }} {{ $sub_item->Quantity }}
{{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }} {{ $sub_item->Quantity }}
{{ $sub_item->Number }} {{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }} {{ $sub_item->Quantity }}
{{ $sub_item->Size }} {{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }} {{ $sub_item->Quantity }}
{{ $sub_item->Number }} {{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }} {{ $sub_item->Quantity }}
{{ $sub_item->Size }} {{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }} {{ $sub_item->Quantity }}
{{ $sub_item->Size }} {{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }} {{ $sub_item->Quantity }}
{{ $sub_item->ShortsSize}} {{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }} {{ $sub_item->Quantity }}
{{ $sub_item->ShortsSize }} {{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }} {{ $sub_item->Quantity }}