@extends('layouts.layout') @section('content')
{{-- @php echo "
";
            print_r($order);
        @endphp --}}
        
        
@php $orderStatus = $order->dynamicStatus->name; if ($orderStatus == 'In Progress') { $color = 'secondary'; $redirectTo = 'javascript:void(0)'; } elseif ($orderStatus == 'Delivered') { $color = 'success'; $redirectTo = 'javascript:void(0)'; } elseif ($orderStatus == 'Failed') { $color = 'primary'; $redirectTo = 'javascript:void(0)'; } elseif ($orderStatus == 'Refunded') { $color = 'primary'; $redirectTo = route('refunded.list', ['order_id' => $order->order_id]); } elseif ($orderStatus == 'Full refunded') { $color = 'orange'; $redirectTo = route('refunded.list', ['order_id' => $order->order_id]); } elseif ($orderStatus == 'Partial refunded') { $color = 'orange'; $redirectTo = route('refunded.list', ['order_id' => $order->order_id]); } elseif ($orderStatus == 'Shipping') { $color = 'warning'; $redirectTo = 'javascript:void(0)'; } else { $color = 'secondary'; $redirectTo = 'javascript:void(0)'; } @endphp {{ $orderStatus }} @if (empty($order->tracking_number)) @else View shipment @endif @if ($invoice_count == 0) @else View Invoice @endif

Order Number #{{ $order->order_id }}

{{-- @php dd($order->intake->attachments); @endphp --}}
Product Descriptioin Size Price
@if (empty($order->intake->attachments)) Default image {{-- {{ $order->intake->product_description }} --}} @else @endif  
{{ $order->intake->product_description }}
@if (!empty($order->intake->engraving_text)) Engraving : {{ $order->intake->engraving_text }}
@endif @if (!empty($order->intake->engraving_font)) {{-- Font : 𝓒𝓬𝓻𝓲𝓹𝓽 π“œπ“£ 𝓑𝓸𝓡𝓭 --}} Font : {{ $order->intake->font->value }} @endif
{{ $order->intake->ring_size }} MM
${{ number_format($order->intake->price, 2) }}
Subtotal :

${{ number_format($order->intake->price, 2) }}

Order Confirmation Deposit (50%) :

${{ number_format($order->intake->price / 2, 2) }}

Shipping :

Free

Tax :

$0

Total Price :

${{ number_format($order->intake->price, 2) }}

summary

  • Order ID: {{ $order->order_id }}
  • Order Date: {{ format_est($order->created_at) }}
  • Order Total: ${{ number_format($order->final_amount, 2) }}

Shipping address

  • {{ $order->intake->customer_name }}
  • {{ $order->intake->street_address }} , {{ $order->intake->city }} , {{ $order->intake->state }} , {{ $order->intake->zip }}
    United States of America.
  • Contact No. {{ $order->intake->phone }}

  • Billing address is same as shipping address.

payment method

{{ $order->method }}

@if ($invoice_count > 0)

Invoice ({{ $invoice_count }})

Invoice #{{ $invoice->id }}

{{ date('d M, Y H:i:sA', strtotime($invoice->created_at)) }}

View {{--   --}} {{-- Download --}}

@endif

expected date of delivery: {{ $order->order_status == 2 ? transitDays($shipping->created_at) : 'N/A' }}

track order : {{ $order->tracking_number ?? 'N/A' }}
@push('scripts') @endpush @endsection