@extends('backend.layouts.app') @section('title', $data['p_heading']) @section('content')
| Order ID | {{ $data['order']->order_ref }} |
|---|---|
| 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] }} |
| Checkout Type | @if($data['order']->customer_id > 0) Checkout by Registered Customer @else Guest Checkout @endif |
| Tracking ID(s) | {{ implode(', ', $data['tracking_ids']) }} |
| Website | {{ \App\Models\MicroSites::getName($data['order']->site_id) }} |
| Web POS Ref | {{ $data['order']->wp_ref }} |
| Packing Slip | Print PDF |
| Invoice | Print PDF |
| Customer Sales Order | Print PDF |
| Image | Product | Price | Quantity | Total | |||
|---|---|---|---|---|---|---|---|
| {{ $item->name }}
• {{ $item->sku }} @if($item->custom_set == 'Y') @php $sub_products = json_decode($item->custom_set_items, true); @endphp Customized Surgical Set
BACKORDER ITEM
@endif
@if ($logged_in_user->isAdmin() && $data['order']->order_status != 7)
@endif
|
@if($item->price_original > $item->price)
{{ '$'.number_format($item->price_original, 2) }}
@endif
{{ '$'.number_format($item->price, 2) }}
|
{{ $item->quantity }} |
@if($item->price_original > $item->price)
{{ '$'.number_format($item->price_original * $item->quantity, 2) }}
@endif
@if(trim($item->bogo) != null)
@php
$bogo = json_decode($item->bogo);
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 |
@if ($logged_in_user->isAdmin() && !in_array($data['order']->order_status, [6,7,8,9])) @endif |
| Sub Total | {{ '$'.number_format($data['order']->sub_total, 2) }} |
|---|---|
| Shipping Fee |
({{ $data['order']->shipping_service }}) {{ '$'.number_format($data['order']->shipping_fee, 2) }}
@if(!in_array($data['order']->order_status, [6,7,8,9]))
Edit Shipping Fee @endif |
| Discount | {{ '$'.number_format($data['order']->discount, 2) }} |
| Tax | {{ '$'.number_format($data['order']->tax, 2) }}
@if(!in_array($data['order']->order_status, [6,7,8,9]))
Edit Tax @endif |
| Grand Total | {{ '$'.number_format($data['order']->grand_total, 2) }} |
| 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' !!} |
| Billing Email Address | {{ $data['order']->email ?? 'N/A' }} |
|---|---|
| Billing Name | {{ $data['order']->bl_first_name . ' ' . $data['order']->bl_last_name }} |
| Billing Company | {{ $data['order']->bl_company ?? 'N/A' }} |
| Billing Address Line 1 | {{ $data['order']->bl_address1 }} |
| Billing Address Line 2 | {{ $data['order']->bl_address2 ?? 'N/A' }} |
| Billing City | {{ $data['order']->bl_city }} |
| Billing Zip / Postal Code | {{ $data['order']->bl_zip_code }} |
| Billing State | @if(is_numeric($data['order']->bl_state)) {{ \App\Models\State::get_state_name($data['order']->bl_state) }} @else {{ $data['order']->bl_state }} @endif |
| Billing Country | {{ \App\Models\Country::get_country_name($data['order']->bl_country) }} |
| Billing Phone | {{ $data['order']->bl_phone ?? 'N/A' }} |
| Transaction Tag | {{ $data['order']->transaction_id }} |
|---|---|
| Authorization Number | {!! $data['order']->balance_transaction !!} |
| Transaction Reference | {!! $data['order']->reference_id !!} |
| Card Number | {!! $data['order']->card_number . ' - '. strtoupper($data['order']->card_type) .'' !!} |
| Transaction Record | Click to View |
| Buyer ID | {{ $data['order']->receipt_url }} |
|---|---|
| PayPal Token | {!! $data['order']->paypal_token !!} |
| Payment Method | PayPal |
| Subject | Message | Status | Tracking ID | Customer Notified | Show to Customer | Date |
|---|---|---|---|---|---|---|
| {{ $notification->subject }} | {{ $notification->message }} | {{ \App\Models\Order::$statuses[$notification->order_status] }} | {{ $notification->tracking_id }} | {{ ($notification->email_sent == 'Y') ? 'Yes' : 'No' }} | {{ ($notification->private_note == 'N') ? 'Yes' : 'No' }} |
{{ \Carbon\Carbon::parse($notification->created_at)->format('M d, Y H:i:s') }}
({{ \Carbon\Carbon::parse($notification->created_at)->diffForHumans() }}) |
| Type | Subject | Message | Date |
|---|---|---|---|
| {{ \App\Models\Order::$invoice_codes[$notification->type] }} | {{ $notification->subject }} | {{ $notification->message }} |
{{ \Carbon\Carbon::parse($notification->created_at)->format('M d, Y H:i:s') }}
({{ \Carbon\Carbon::parse($notification->created_at)->diffForHumans() }}) |