@push('head') @endpush
@if($showcheckout == true) @elseif(!$cartproducts) @else @endif
{{$selected_language->data['my_cart'] ?? 'My Cart'}}
    
@if($cartproducts)
@php $total = 0; $subtotal = 0; $prices = []; @endphp @if($cartproducts) @forelse($cartproducts as $key => $row) @php $inlinetotal = 0; $variantname = null; $variantprice = 0; $extras = []; $product = \App\Product::where('id',$key)->first(); if($product) { if(isset($row['variant'])) { foreach($row['variant'] as $key => $variant) { $addon = \App\Models\Addon::where('id',$variant)->first(); $variantname .= ' '.$addon->addon_name; $variantprice += $addon->price; } $subtotal += $variantprice * $quantity[$product->id]; $inlinetotal = $variantprice * $quantity[$product->id]; } else{ $subtotal += $product->price * $quantity[$product->id]; $inlinetotal = $product->price * $quantity[$product->id]; } if(isset($row['extras'])) { foreach($row['extras'] as $key => $extra) { $addon = \App\Models\Addon::where('id',$key)->first(); $subtotal = $subtotal + $addon->price; $inlinetotal = $inlinetotal+$addon->price; $extras[$key]['name'] = $addon->addon_name; $extras[$key]['price'] = $addon->price; } } $prices[$product->id] = $inlinetotal; } @endphp @if($product) @endif @empty @endforelse @else Empty @endif
{{$product->name}} ( @if($variantname)@if($variantname) {{$variantname}} @endif : @include('layouts.render.currency',["amount"=>$variantprice]) @else @include('layouts.render.currency',["amount"=>$product->price*$quantity[$product->id]]) @endif ) @if($extras) @foreach($extras as $row) {{$row['name']}} @include('layouts.render.currency',["amount"=>$row['price']]) @endforeach @include('layouts.render.currency',["amount"=>$prices[$product->id]]) @endif

-
+
@error('name') {{ $message }} @enderror
@error('phone_number') {{ $message }} @enderror
@if($order_type == 3)
@error('address') {{ $message }} @enderror
@endif @if($order_type ==1) @php $tables = \App\Models\Table::where('store_id',$store->id)->where('is_active',1)->get(); @endphp
@error('table') {{ $message }} @enderror
@endif @if($order_type == 4)
@error('room') {{ $message }} @enderror
@endif
{{$selected_language->data['have_coupon'] ?? 'Have A Coupon?'}}

{{$selected_language->data['enter_coupon_code'] ?? 'Enter Coupon Code Here'}}

@error('coupon') {{ $message }} @enderror @error('coupon_success') {{ $message }} @enderror
@php $taxtotal = $subtotal * ($store->tax/100); @endphp @php $total = $subtotal + $store->service_charge + $taxtotal; $couponprice = 0; if($coupon) { if($coupon->discount_type == 'AMOUNT') { $couponprice = $coupon->discount; $total = $total - $coupon->discount; } else if($coupon->discount_type == 'PERCENTAGE') { $couponprice = $total * $coupon->discount/100; $total = $total - ($total * $coupon->discount/100); } } if($total < 0) { $total = 0; } @endphp
{{$selected_language->data['sub_total'] ?? 'Sub Total'}}
@include('layouts.render.currency',["amount"=>$subtotal])

{{$selected_language->data['applied_coupon'] ?? 'Applied Coupon'}}
@include('layouts.render.currency',["amount"=>$couponprice])

{{$selected_language->data['service_charge'] ?? 'Service Charge'}}
@include('layouts.render.currency',["amount"=>$store->service_charge])

{{$selected_language->data['menu_tax'] ?? 'Tax'}} ({{$store->tax ?? '0'}}%)
@include('layouts.render.currency',["amount"=>$subtotal * ($store->tax/100)])
@include('layouts.render.currency',["amount"=>$total])
{{$selected_language->data['checkout'] ?? 'Checkout Now'}}
{{$selected_language->data['cash_on_delivery'] ?? 'Cash'}}

{{$selected_language->data['cash_description'] ?? 'Please bring change with you.'}}

@if($razorpayEnabled == 1)
{{$selected_language->data['razorpay'] ?? 'Razor Pay'}}
@endif @if($isStripeEnabled == 1)
{{$selected_language->data['stripe'] ?? 'Stripe Pay'}}
@endif @if($isPaypalEnabled == 1)
{{$selected_language->data['paypal'] ?? 'PayPal'}}
@endif @if($isPaystackEnabled == 1)
{{$selected_language->data['pay_stack'] ?? 'Pay Stack'}}
@endif
{{$account_info != NULL ?$account_info->currency_symbol:"₹"}}{{$total}}

{{$selected_language->data['your_order_placed'] ?? 'Your Order Has Been Placed'}}

{{$selected_language->data['your_order_number_is'] ?? 'Order Number'}} : {{$order_id}}

@if($successmsg)
{{$selected_language->data['payment_id'] ?? 'Payment ID'}} : {{$successmsg}}
@endif
@else
@endif
@include('Home.home_layout.stripe') @include('Home.home_layout.paypal')
@push('head') @if($this->isPaypalEnabled == 1) @endif @endpush