@if (session()->has('success_message'))
@endif
{{--
--}}
@foreach ($products as $product)
{{ session()->get('success_message') }}
@endif
@if (count($errors) > 0)
-
@foreach ($errors->all() as $error)
- {{ $error }} @endforeach
Order ID: {{ $order->id }}
Order Placed
{{ presentDate($order->created_at) }}
Order ID
{{ $order->id }}
Total
{{ ($order->billing_total) }}
Name
{{ $order->user->name }}
Address
{{ $order->billing_address }}
City
{{ $order->billing_city }}
Discount
{{ $order->billing_discount ?? 0 }}
Subtotal
{{ ($order->billing_subtotal) }}
Tax
{{ ($order->billing_tax ?? 0) }}
Total
{{ ($order->billing_total ?? 0) }}
Order Items
@php
$imagesArray = json_decode($product->images, true);
$firstImage = is_array($imagesArray) ?
trim($imagesArray[0], '"') :
$product->images;
@endphp
@endforeach
@foreach ($products as $product)
@endforeach
Status
{{$orderStatus}}
Billing Details
Order ID
#{{ $order->id }}
Date
{{-- {{ presentDate($order->created_at) }} --}} {{ $order->created_at->format('Y-m-d')}}
Total
{{ ($order->billing_total) }}
{{--
--}}
{{ $order->user->name }}
{{ $order->billing_address }}
{{ $order->billing_phone }}
{{ $order->billing_email }}
{{--
--}}