-
{{-- 1 --}} Personal Information
Signin Credentials {{-- Checking out as a Guest? You’ll be able to save your details to create an account with us later. --}}
{{-- -
2Shipping
-
3Billing
-
4Payment
--}}
Order Summary
{{-- Edit cart --}}
{{$orders->count()}} items
-
@if (!function_exists('formatIndianNumber'))
@php
function formatIndianNumber($number) {
$number = (string)$number;
$lastThreeDigits = substr($number, -3);
$remainingDigits = substr($number, 0, -3);
if ($remainingDigits != '') {
$lastThreeDigits = ',' . $lastThreeDigits;
}
$formattedNumber = preg_replace('/\B(?=(\d{2})+(?!\d))/', ',', $remainingDigits) . $lastThreeDigits;
return $formattedNumber;
}
@endphp
@endif
@forelse($orders as $order)
@foreach($order->product_ids as $key=>$product_id)
-
#{{$order->id}}
@php $product = DB::table('products')->where('id', $product_id)->first(); $images = explode(',', $product->images); $first_img=$images[0]; @endphp{{-- {{$order->quantities[$key]}} x --}} {{Str::limit($order->product_names[$key], 20, $end='...')}}{{$order->quantities[$key]}} x {{$order->variant_details[$key]}}₹{{formatIndianNumber($order->amount[$key])}}
@endforeach
@empty
-
No Product
@endforelse
{{-- - --}}
-
Subtotal £170.00
-
Shipping £20.00
-
Tax £0.00
-
total: £190.00
