@extends('front.layout') @section('meta-keywords', "$seo->meta_keywords") @section('meta-description', "$seo->meta_description") @section('content')

{{ __('Products') }}

@if($cart !=null)
@php $i = 1; $cartTotal = 0; $countitem = 0; @endphp @foreach ($cart as $pid => $item) @php $countitem += $item['qty']; $cartTotal += (double)$item['price'] * (int)$item['qty']; $product = App\Models\Product::findOrFail($pid); @endphp @endforeach
# {{ __('Image') }} {{ __('Product Name') }} {{ __('Quantity') }} {{ __('Price') }} {{ __('Total') }} {{ __('Action') }}
{{ $i++ }} product-image @php $cproduct = App\Models\Product::where('id', $item['id'])->first(); @endphp {{ $item['title'] }} {{Helper::showCurrencyPrice($item['price'])}} {{ $item['qty'] }} {{ Helper::showCurrency() }}{{ Helper::showPrice($item['price']) * $item['qty'] }}

Cart Summery :

  • {{ __('Total Item') }}{{ $countitem }}
  • {{ __('Total') }} {{ Helper::showCurrencyPrice($cartTotal) }}
Checkout
@else

{{__('Cart is empty!')}}

@endif
@endsection