@php use Modules\Core\Helpers\Helper; @endphp @extends('front::layouts.master') @section('title','Cart Page') @section('content')
@csrf @if(Helper::getAllProductFromCart()) @foreach(Helper::getAllProductFromCart() as $key=>$cart) @endforeach @else @endif
@lang('partials.product') @lang('partials.name') UNIT PRICE QUANTITY TOTAL
{{$cart->product['title']}}

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

${{number_format($cart['price'],2)}}
${{$cart['amount']}}
There are no any carts available. Continue shopping
@csrf @if(Helper::getAllProductFromCart()) @foreach(Helper::getAllProductFromCart() as $key=>$cart)
{{$cart->product['title']}}
{{$cart->product['title']}}
Unit Price: ${{number_format($cart['price'],2)}}
Total: ${{$cart['amount']}}
Remove
@endforeach
@else

There are no any carts available.

Continue shopping
@endif
@if(session()->has('coupon'))
Coupon Applied!
Code: {{ session('coupon.code') }}
Discount: ${{ number_format(session('coupon.value'), 2) }}
@else
Apply Coupon
@endif
Cart Summary
  • Cart Subtotal ${{number_format(Helper::totalCartPrice(),2)}}
  • @if(session()->has('coupon'))
  • You Save -${{number_format(Session::get('coupon')['value'],2)}}
  • @endif @php $total_amount = Helper::totalCartPrice(); if(session()->has('coupon')){ $total_amount = $total_amount - Session::get('coupon')['value']; } @endphp
  • You Pay ${{number_format($total_amount,2)}}
{{--

Free shiping

Orders over $100

Free Return

Within 30 days returns

Sucure Payment

100% secure payment

Best Peice

Guaranteed price

--}} @endsection @push('styles') @endpush @push('scripts') @endpush