@extends('customer.layout.master') @section('pageTitle', (isset($pageTitle)) ? $pageTitle : config('app.APP_NAME') ) @section('pageDescription', (isset($pageDescription)) ? $pageDescription : config('app.APP_NAME') ) @section('pageKeywords', (isset($pageKeywords)) ? $pageKeywords : config('app.APP_NAME') ) @section('content')
{{ __('customer/cart.page-title') }}
@if ($cart)
@csrf @method('PUT')
@foreach ($cart->items as $key => $item) @php $summaryObj->subTotal += $item->product->price * $item->quantity; if ( !$item->product->haveSufficientQuantity() && $item->product->parent_category->is_preorder_active ) { $summaryObj->is_preorder_active = 1; $summaryObj->preorder_amount += $item->product->parent_category->preorder_amount * $item->quantity; $summaryObj->finalTotal += $item->product->parent_category->preorder_amount * $item->quantity; } else { if ( !empty($item->product->special_price) && $item->product->special_price > 0 ) { $summaryObj->webDiscount += ($item->product->price - $item->product->special_price) * $item->quantity; } $summaryObj->finalTotal += $item->product->final_price * $item->quantity; if ($item->product->hasCashback()) { $summaryObj->hasHdfcCashback = $item->product->hasCashback(); $summaryObj->hdfcCashbackTotal += $item->product->getCashbackAmount() * $item->quantity; } if ($item->product->parent_category->is_emi_active) { $summaryObj->hasEMI = $item->product->parent_category->is_emi_active; $summaryObj->emiTotal += ($item->product->final_price / $item->product->parent_category->emi_month) * $item->quantity; } } @endphp product->url_postfix}") }}" > {{-- --}}
{{ $item->product->name }}url('/shared/static/dummy/small/dummy.webp')."'"}}">
{{ $item->product->name }}

{!! $item->product->priceHTML !!}

@if( !$item->product->haveSufficientQuantity() && ($item->product->parent_category->is_preorder_active || $item->product->parent_category->is_pre_register_active) ) {!! $item->product->getPreorderLinerHtml() !!} @endif
@if( $item->quantity > 1 ) @else @endif
@endforeach
@else

{{ __('customer/cart.cart-empty') }}

{{ __('customer/cart.continue-shopping') }}
@endif
@if($cart)
{{ __('customer/cart.cart-summary') }}
@include('customer.cart.summary', ['cart' => $cart, 'summaryObj' => $summaryObj])
@endif
@endsection