Checkout
@if(!$data['customer'])Returning customer? Click here to login
If you have shopped with us before, please enter your details in the boxes below. If you are a new customer please proceed to the Billing & Shipping section.
Payment Details
ORDER REVIEW
Product Total
-
@php
$sub_total = 0;
$bogo_discount = 0;
@endphp
@foreach($data['cart'] as $cart)
@php
//$sub_total += $cart->getPriceWithConditions();
$item_price = $cart->getPriceWithConditions();
$total_price = $cart->getPriceSumWithConditions();
if($cart->bogo_free)
{
$total_price_discount = $cart->bogo_free * $item_price;
$bogo_discount += $total_price_discount;
$talal_price_after_bogo = $total_price - $total_price_discount;
}
if($cart->bogod_count)
{
$discounted_price = ($item_price * $cart->bogod_percent) / 100;
$total_price_discount = $cart->bogod_count * $discounted_price;
$bogo_discount += $total_price_discount;
$talal_price_after_bogo = $total_price - $total_price_discount;
}
$sub_total += $total_price;
@endphp
-
{{ $cart->name }}
• {{ $cart->attributes->sku }} ({{ $cart->quantity }}) @if($cart->bogo_free)
{{ $cart->bogo_free }} free @if($cart->bogo_free > 1) items @else item @endif @elseif($cart->bogod_count)
{{ $cart->bogod_percent }}% discount on {{ $cart->bogod_count }} @if($cart->bogod_count > 1) items @else item @endif @endif @if($cart->bogo_free || $cart->bogod_count) ${{ number_format($talal_price_after_bogo, 2) }} {{--{{ $cart->bogo_free }} free @if($cart->bogo_free > 1) items @else item @endif--}} @else bogo_free || $cart->bogod_count) class="old-price" @endif>${{ number_format($cart->getPriceSumWithConditions(), 2) }} @endif
@endforeach
Sub Total ${{ number_format($sub_total, 2) }}
Discount ${{ number_format($discount, 2) }}
Shipping Fee {{ $data['shipping_rate'] ?? "$0.00" }}
Grand Total ${{ number_format($grand_total, 2) }}