@extends('frontend.layouts.app') @section('title', app_name() . ' | ' . __('navs.frontend.dashboard') ) @section('content')
@include('frontend.user.account._menu')

Detail of Order # {{ $data['order']->id }}

Basic Details
@if($data['order']->ups_tracking_id != '') @endif
Order ID {{ $data['order']->id }}
Order Date {{ \Carbon\Carbon::parse($data['order']->created_at)->format('M d, Y H:i:s') }}   ({{ \Carbon\Carbon::parse($data['order']->created_at)->diffForHumans() }})
Order Status {{ \App\Models\Order::$statuses[$data['order']->order_status] }}
Tracking ID {{ $data['order']->ups_tracking_id }}
List of Ordered Items
@foreach($data['order']->items as $item) @php if($item->image != '') $path = '/up_data/products/images/thumbnails/'.$item->image; else $path = '/up_data/na.jpg'; $total_price = $item->price * $item->quantity; $bogo = null; if(trim($item->bogo) != null) $bogo = json_decode($item->bogo); @endphp @endforeach
Image Product Price Quantity Total
{{ $item->name }} {{ $item->name }}
• {{ $item->sku }} @if($item->engraving_text_primary != '')
Engraving Text:
• {{ $item->engraving_text_primary }}
@if(trim($item->engraving_text_secondary) != null)
• {{ $item->engraving_text_secondary }}
@endif
@endif
@if(!is_null($bogo) && isset($bogo->is_free))
Free Product
@else @if($item->price_original > $item->price)
{{ '$'.number_format($item->price_original, 2) }}
@endif {{ '$'.number_format($item->price, 2) }} @endif
{{ $item->quantity }} @if(!is_null($bogo) && isset($bogo->is_free))
Free Product
@else @if($item->price_original > $item->price)
{{ '$'.number_format($item->price_original * $item->quantity, 2) }}
@endif @if(!is_null($bogo)) @php echo '$'.number_format($total_price - $bogo->discount_amount, 2).''; if(isset($bogo->bogo_free)) echo '
'.$bogo->bogo_free . ' free item(s)'; else echo '
'.$bogo->bogod_percent.'% discount on ' . $bogo->bogod_count . ' item(s)'; @endphp @else {{ '$'.number_format($total_price, 2) }} @endif @endif
@if($data['order']->discount > 0) @endif @if($data['order']->tax > 0) @endif @if($data['order']->engraving_charges > 0) @endif
Sub Total {{ '$'.number_format($data['order']->sub_total, 2) }}
Shipping Fee ({{ $data['order']->shipping_service }})   {{ '$'.number_format($data['order']->shipping_fee, 2) }}
Discount {{ '$'.number_format($data['order']->discount, 2) }}
Tax {{ '$'.number_format($data['order']->tax, 2) }}
Engraving Charges {{ '$'.number_format($data['order']->engraving_charges, 2) }}
Grand Total {{ '$'.number_format($data['order']->grand_total, 2) }}
Shipping Details
@if($data['order']->customer_id > 0) @endif
Customer Name {{ \App\Models\Customer::getCustomerName($data['order']->customer_id) }}
Email Address {{ $data['order']->email ?? 'N/A' }}
Ship-to Name {{ $data['order']->first_name . ' ' . $data['order']->last_name }}
Company {{ $data['order']->company ?? 'N/A' }}
Address Line 1 {{ $data['order']->address1 }}
Address Line 2 {{ $data['order']->address2 ?? 'N/A' }}
City {{ $data['order']->city }}
Zip / Postal Code {{ $data['order']->zip_code }}
State @if(is_numeric($data['order']->state)) {{ \App\Models\State::get_state_name($data['order']->state) }} @else {{ $data['order']->state }} @endif
Country {{ \App\Models\Country::get_country_name($data['order']->country) }}
Phone {{ $data['order']->phone ?? 'N/A' }}
Notes {{ $data['order']->notes ?? 'N/A' }}
@if($data['order']->payment_type == 'Credit Card')
Payment Details
Transaction Reference {{ $data['order']->payment_method }}
Card Number {!! $data['order']->card_number . ' - '. strtoupper($data['order']->card_type) .'' !!}
@endif
Order Status Updates
@foreach($data['notifications'] as $notification) @endforeach
Subject Message Status Date
{{ $notification->subject }} {{ $notification->message }} {{ \App\Models\Order::$statuses[$notification->order_status] }} {{ \Carbon\Carbon::parse($notification->created_at)->format('M d, Y H:i:s') }}
({{ \Carbon\Carbon::parse($notification->created_at)->diffForHumans() }})
@endsection