@extends('layouts-new.front') @push('styles') @endpush @section('content')

@if( Request::url() == route('front.cartPage').'/'.'deal' ) @lang('app.deals') @else {{ $category_id ? $category_id->name : __('app.services')}} @endif

@lang('front.cart')

{{ $productsCount }} @lang('app.items')

@if (!is_null($products)) @forelse ($products as $key => $product)

{{ $product['name'] }}

{{ currencyFormatter($product['quantity'] * $product['price']) }}

@php $appliedTax = 0; $totalTax = 0; $taxPercent = 0; $subTotal = $product['quantity'] * $product['price'] @endphp @if (isset($product['tax'])) @forelse (json_decode($product['tax']) as $tax) @if (isset($tax->tax_name)) @php $taxPercent += $tax->percent; $appliedTax += ($subTotal*$tax->percent)/100; $totalTax += $appliedTax; @endphp @endif @empty @endforelse @endif
@empty
@lang('front.table.emptyMessage')
@endforelse @else
@lang('front.table.emptyMessage')
@endif

@lang('front.summary.cart.subTotal')

@lang('app.totalTax')

{{ $totalTax ?? '0' }}

@lang('front.summary.cart.totalAmount')

@lang('front.selectBookingTime')
@endsection @push('footer-script') @include("partials.currency_format") @endpush