@extends('frontend.pages.layouts.master') @section('content')

Guest Checkout

I already have an account Login
Your Order
@foreach (session('cart') as $key => $car_item) @php $total = $car_item['quantity'] * $car_item['price']; $item_key = $key; @endphp
{{$car_item['name']}}
{{$car_item['name']}}
Quantity: {{$car_item['quantity']}}
    @foreach (json_decode($car_item['variants']) as $key => $variant_value)
  • {{ get_variant_value($key) }}:{{ get_option_value($variant_value) }}
  • @endforeach
{{default_currency()->sign}}{{number_format($total,2)}}+GST
@endforeach @php $grand_total=0; @endphp @if (\Illuminate\Support\Facades\Session::has('cart')) @foreach (session('cart') as $key => $car_item) @php $total = $car_item['quantity'] * $car_item['price']; $item_key = $key; @endphp @php $grand_total += $total @endphp @endforeach @endif @php $all_tax_amount = 0;$tax_amount = 0; $rounded_total=$grand_total; @endphp @foreach(\App\Models\Commerce\TaxSetting::where('status',1)->get() as $tax_item) @php $tax_amount = $grand_total*($tax_item->rate)/100; $all_tax_amount+=$tax_amount @endphp @endforeach @php $rounded_total=$all_tax_amount+$grand_total+request('delivery'); @endphp
Sub Total: {{default_currency()->sign}}{{number_format($grand_total,2)}}
{{$tax_item->name}}: {{default_currency()->sign}}{{number_format($tax_amount,2)}}
Delivery: {{default_currency()->sign}}{{number_format(request('delivery'),2)}}
Total (inc GST) : {{default_currency()->sign}}{{number_format($rounded_total,2)}}
@include('layouts.message') @if(count($errors)>0)
    @error('email')
  • You already have an account with this email address. Please Login to continue
  • @enderror {{--@foreach($errors->all() as $error)--}} {{--
  • {!! $error !!}
  • --}} {{--@endforeach--}}
@endif
{{csrf_field()}}
Billing Details
{{--@error('email') {{$message}} @enderror--}}
Billing Details
{{--@error('email') {{$message}} @enderror--}}
@endsection @section('after_css') @endsection @section('stripe_scripts') @endsection