LKR
English

+94 77 286 4877

@if (Auth::check()) @php $user = Auth::user(); $cartproduct = APP\Models\Cart::where('userid', $user->id)->get(); $cartcount = $cartproduct->count(); @endphp @endif {{ $cartcount ?? 0 }}
    @if (Auth::check()) @php $user = Auth::user(); $cart_product = APP\Models\Cart::where('userid', $user->id)->take(2)->get(); @endphp @if ($user != null && $cart_product != null) @foreach ($cart_product as $cart) @if ($cart)
  • @php try { $productid = $cart->productid; $product = DB::table('product') ->join( 'product_color', 'product.id', '=', 'product_color.product_id', ) ->select( 'product.id', 'product.product_name', 'product.category_id', 'product.product_tags', 'product.sku', 'product.product_image', 'product.product_price', 'product.cutted_price', 'product.product_description', 'product.qty', 'product.weight', 'product.order', 'product.views', 'product.status', 'product_color.product_color', 'product_color.color_image', 'product_color.price', ) ->where('product_color.product_color', $cart->color) ->where('product.id', $cart->productid) ->first(); } catch (\Throwable $th) { DB::table('error_logs')->insert([ 'message' => $th->getMessage(), 'file' => $th->getFile(), 'line' => $th->getLine(), 'trace' => $th->getTraceAsString(), 'created_at' => now(), ]); } @endphp @if ($product) 3/4 Sleeve Kimono Dress @endif
    @php $product = App\Models\Product::where( 'id', $cart->productid, )->first(); @endphp {{ $product->product_name }}
    Qty:
    @php $price = $cart->product_price * $cart->qty; @endphp LKR  {{ number_format($price, 2) }}
  • @endif @endforeach @endif @else

    Your cart is empty

    Please log in to view your cart items

    @endif
@if (Auth::check()) View Cart Checkout @else @endif
@yield('content') @if (session('verify-email')) @endif @if (session('message')) @endif @if (session('errormsg')) @endif