@extends('layouts.public.app') @section('title', 'Order #' . $order->order_no . ' | Chemical Wholesale') @section('content') @php $firstItem = $order->getorderitems->first(); $supplierBusiness = $firstItem ? @$firstItem->getproduct->getbusiness : null; $supplier = $supplierBusiness ? $supplierBusiness->assignedBusiness->first() : null; $supplierAddress = $supplierBusiness ? @$firstItem->getproduct->getbusiness->getaddress : null; $shippingAddress = $firstItem ? @$firstItem->getshippingaddress : null; @endphp
@include('public.profile.account_nav')

Order No: {{ $order->order_no }}

Your order details.

Order No: {{ $order->order_no }} | {{ date('m-d-Y', strtotime($order->created_at)) }} {{-- Money Back guaranteee | Express Delivery --}}
Supplier
@if($supplierBusiness)
{{ @$supplierBusiness->name }}
Contact name: {{ !empty(@$supplierBusiness->contact_person_name) ? @$supplierBusiness->contact_person_name : @$supplier->getuser->first_name . ' ' . @$supplier->getuser->last_name }}

Registered Company

{{ @$supplierBusiness->company }}

Contact Tel: {{ @$supplierBusiness->company_phone }}
Contact Email: {{ @$supplierBusiness->company_email }}
@else
{{ $order->company ?? 'N/A' }}
@endif
Buyer
{{ @$shippingAddress->location_name }}
Contact name: {{ !empty(@$shippingAddress->contact_person_name) ? @$shippingAddress->contact_person_name : @$order->getorder->getuser->first_name . ' ' . @$order->getorder->getuser->last_name }}
{{--

Registered Company

Thrissur Kerala India

--}}
Contact Tel: {{ !empty(@$shippingAddress->phone) ? @$shippingAddress->phone : @$order->getorder->getuser->mobile }}
Contact Email: {{ !empty(@$shippingAddress->email) ? @$shippingAddress->email : @$order->getorder->getuser->email }}
Product Details
@if (!empty(@$order->getorderitems)) @php $i=0; @endphp @foreach (@$order->getorderitems as $items) {{-- --}} @php $i++; @endphp @endforeach @endif
# Item Package Info Quantity Unit Price Shipping Total
{{ $i + 1 }} {{ @$items->getproduct->name }} Type: {{ ucfirst(@$items->packaging_type) }}
Unit: {{ ucfirst(@$items->packaging_measurement_units) }}
Weight: {{ @$items->packaging_net_weight }}
{{ @$items->quantity }} {{ @$items->getproduct->getpackage->getcurrency->symbole }}{{@$items->selling_price}}${{ number_format(@$items->selling_price, 2) }} ${{ number_format(@$items->shipping_amount, 2) }} ${{ number_format(@$items->total_amount + @$items->shipping_amount, 2) }}

@if (!empty(@$order->getpaidnote->first())) @php $pn=0; @endphp @foreach (@$order->getpaidnote as $paidnote) @php $pn++; @endphp @endforeach @else @endif
Time Sent (PST) Time Updated (PST) Notes
{{ date('m-d-Y', strtotime($paidnote->created_at)) }} {{ date('m-d-Y', strtotime($paidnote->updated_at)) }} {!! $paidnote->notes !!}
No Record Found

@if (!empty(@$order->getshippednote->first())) @php $sn=0; @endphp @foreach (@$order->getshippednote as $shippednote) @php $sn++; @endphp @endforeach @else @endif
Time Sent (PST) Time Updated (PST) Shipping Provider Tracking Number Notes
{{ date('m-d-Y', strtotime($shippednote->created_at)) }} {{ date('m-d-Y', strtotime($shippednote->updated_at)) }} {{ strtoupper($shippednote->shipping_provider) }} {{ $shippednote->tracking_number }} {!! $shippednote->notes !!}
No Record Found

@if (!empty(@$order->ordertrack->count()))
@foreach ($order->ordertrack as $ordertrack)
  • {{ date('m-d-Y H:i:s', strtotime($ordertrack->created_at)) }}

    ({{ Common::createdBy($ordertrack->created_by, true) }}) {{ $ordertrack->status }}

  • @endforeach
    @else

    No Track Detail Found

    @endif
    @endsection @push('css') @endpush @push('js') @endpush