@extends('frontend.layouts.master') @section('title','Cart Page') @section('main-content')
@csrf @if(Helper::getAllProductFromCart()) @foreach(Helper::getAllProductFromCart() as $key=>$cart) @php $photo=explode(',',$cart->product['photo']); @endphp @endforeach @else @endif
PRODUCT NAME SIZE UNIT PRICE QUANTITY TOTAL
{{$photo[0]}}

{{$cart->product['title']}}

{!!($cart['summary']) !!}

@if($cart->size && $cart->size !== 'No Size')

Size: {{ $cart->size }}

@endif
Rs{{ number_format($cart->product->price, 2) }}
Rs{{number_format($cart['price'],2)}}
There are no any carts available. Continue shopping
@csrf
{{--
` @php $shipping=DB::table('shippings')->where('status','active')->limit(1)->get(); @endphp
--}}
@php $original_price = 0; $discounted_price = 0; $cartItems = Helper::getAllProductFromCart(); if (is_iterable($cartItems)) { foreach($cartItems as $item) { $original_price += $item->product->price * $item->quantity; $discounted_price += $item->price * $item->quantity; } } $product_discount = $original_price - $discounted_price; $coupon_discount = session()->has('coupon') ? session('coupon')['value'] : 0; $final_amount = $discounted_price - $coupon_discount; @endphp
  • Total MRP Rs{{ number_format($original_price, 2) }}
  • @if($product_discount > 0)
  • Product Discount - Rs{{ number_format($product_discount, 2) }}
  • @endif @if($coupon_discount > 0)
  • Coupon Discount - Rs{{ number_format($coupon_discount, 2) }}
  • @endif
  • Sub Total Rs{{ number_format($final_amount, 2) }}
@if(Helper::getAllProductFromCart())
@csrf
@foreach(Helper::getAllProductFromCart() as $key=>$cart) @php $photo = explode(',', $cart->product['photo']); @endphp
{{ $photo[0] }}

{{ $cart->product['title'] }}

{!! $cart['summary'] !!}

@if($cart->size && $cart->size !== 'No Size')

Size: {{ $cart->size }}

@endif

MRP: Rs{{ number_format($cart->product->price, 2) }}

Total: Rs{{ number_format($cart['price'], 2) }}

Remove
@endforeach
@csrf
@php $original_price = 0; $discounted_price = 0; $cartItems = Helper::getAllProductFromCart(); foreach($cartItems as $item) { $original_price += $item->product->price * $item->quantity; $discounted_price += $item->price * $item->quantity; } $product_discount = $original_price - $discounted_price; $coupon_discount = session()->has('coupon') ? session('coupon')['value'] : 0; $final_amount = $discounted_price - $coupon_discount; @endphp
  • Total MRP: Rs{{ number_format($original_price, 2) }}
  • @if($product_discount > 0)
  • Product Discount: - Rs{{ number_format($product_discount, 2) }}
  • @endif @if($coupon_discount > 0)
  • Coupon Discount: - Rs{{ number_format($coupon_discount, 2) }}
  • @endif
  • Sub Total: Rs{{ number_format($final_amount, 2) }}
@else

No items in cart. Continue shopping

@endif

Free shiping

Orders over $100

Free Return

Within 30 days returns

Sucure Payment

100% secure payment

Best Peice

Guaranteed price

@include('frontend.layouts.newsletter') @endsection @push('styles') @endpush @push('scripts') @endpush