@extends('layouts.front.home') @section('title') {{ __('products.checkout_title') }} @endsection @section('css') @endsection @section('content')
@include('flash::message') @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @php $vat = 0; $rate = ($vatRate ?? 10) / 100; $subtotal = 0; @endphp @isset($cart)
@if(count($cart) > 0) @foreach ($cart as $item) @php $product = $item?->product; $cost = $item->quantity * $product->price; $subtotal += $cost; $vat += $cost * $rate; @endphp
{{ $product->name }}
{{ $product->name }}
{{ $product->category?->name }}
{{ __('products.cost') }}: {{ $cost }} SAR
@endforeach @else
{{ __('products.empty_cart') }}
@endif
@endisset
@csrf
{{ __('products.address') }} *
{{ __('products.add_coupon') }}
{{--
Choose Payment Method
--}}
{{ __('products.payment_details') }}
{{ __('products.subtotal') }}{{ $subtotal }} SAR
{{ __('products.vat') }}{{ $vat }} SAR
{{--
Delivery Fee50 SAR
--}}
{{ __('products.net_total') }}{{ $subtotal + $vat }} SAR
@endsection @section('script') @endsection