-
@foreach ($errors->all() as $error)
- {{ $error }} @endforeach
{{ __('products.order_details') }} #{{ $order->id }}
{{ \Carbon\Carbon::parse($order->created_at)->format('M j, Y — H:i') }}
@if ($order->payment_status == 0)
{{ __('products.get_payment') }}
@endif
{{ __('nav.dashboard') }}
{{ __('products.order_journey') }}
{{ $__journeyText }}
{{ __('products.order_details') }}
#{{ $order->id }}
{{ __('products.order_number') }}
#{{ $order->id }}
{{ __('products.delivery_address') }}
{{ $order->address }}
{{ __('products.payment_method') }}
{{ $order->payment_type ?? '---' }}
{{ __('products.date') }}
{{ \Carbon\Carbon::parse($order->created_at)->format('M j, Y') }}
{{ __('nav.maintenance_request') ?? __('products.maintenance') }}
{{ __('products.order_details') }} #{{ $order->id }}
@if($order->device_category)
{{ __('products.categories') ?? __('nav.categories') }}
{{ $order->device_category->name }}
@endif
{{ __('nav.device_name') }}
{{ $order->device_name ?? '---' }}
{{ __('nav.serial_number') }}
{{ $order->serial_number ?? '---' }}
{{ __('nav.issue_description') }}
{{ $order->issue_description ?? '---' }}
{{ __('nav.preferred_service_time') }}
{{ $order->preferred_service_time ? \Carbon\Carbon::parse($order->preferred_service_time)->translatedFormat('M j, Y H:i') : '---' }}
@if(count($maintenanceFiles))
{{ __('products.files') }}
@endif
@foreach($maintenanceFiles as $img)
@if(in_array(strtolower(pathinfo($img, PATHINFO_EXTENSION)), ['jpg','jpeg','png','webp']))
@else
{{ strtoupper(pathinfo($img, PATHINFO_EXTENSION)) }}
@endif
@endforeach
{{ __('products.items_count') }}
{{ $order->items_count }} {{ __('products.items_count') }}
@foreach ($order->items as $item)
@php $product = $item->product; @endphp
@endforeach
{{ $product->name }}
{{ $product->category?->name }} × {{ $item->quantity }}
{{ $item->item_price }} {{ __('products.currency_sar') }}
{{ __('products.timeline') }}
{{ __('products.order_journey') }}
@if (!isset($step_12->id))
@foreach ($__customerSteps as $__cs)
@php
$__csVar = 'step_' . $__cs;
$__csEntry = $$__csVar;
@endphp
@endforeach
@else
@endif
{{ customerTimelineName($__cs, $order->order_type) }}
@if(isset($__csEntry->id)){{ \Carbon\Carbon::parse($__csEntry->created_at)->format('M j, Y — H:i') }}
@endif{{ customerTimelineName(12, $order->order_type) }}
{{ \Carbon\Carbon::parse($step_12?->created_at)->format('M j, Y — H:i') }}
{{ __('products.payment_details') }}
{{ __('products.subtotal') }}
{{ $order->items_cost }} {{ __('products.currency_sar') }}
{{ __('products.vat') }} ({{ $order->vat }}%)
{{ $order->vat_amount }} {{ __('products.currency_sar') }}
{{ __('products.discount') }}
{{ $order->discount }} {{ __('products.currency_sar') }}
{{ __('products.delivery_fee') }}
{{ $order->delivery_fee }} {{ __('products.currency_sar') }}
{{ __('products.net_total') }}
{{ $order->total_cost + $order->delivery_fee }} {{ __('products.currency_sar') }}
@if (!isset($step_12->id))
@if (!isset($step_5->id))
@if (!isset($step_2->id))
{{ __('products.cancel_order') }}
@endif
@endif
@if (isset($step_5->id) && !isset($step_6->id))
@endif
@if (isset($step_6->id) && !is_null($order->provider_id))
@endif
@endif
{{ __('products.offer_list') }}
{{ $order->offers->count() }} {{ __('products.offers') }}
@foreach($order->offers as $offer)
@php
$OFStatus = __('products.pending');
$OFStatusClass = 'od-chip-unpaid';
if ($offer->status == 2) { $OFStatus = __('products.accepted'); $OFStatusClass = 'od-chip-paid'; }
elseif ($offer->status == 3) { $OFStatus = __('products.rejected'); $OFStatusClass = ''; }
@endphp
@if (!is_null($offer->rejected_reson))
@endforeach
{{ __('products.offer') }} #{{ $offer->id }}
{{ $OFStatus }}
{{ $offer->filename ?? 'quotation.pdf' }}
{{ __('products.download') }}
{{ __('products.rejected_reason') }}: {{ $offer->rejected_reson }}
@endif
{{ __('products.provider') }}: {{ $offer->provider?->name }}
{{ __('products.total_price') }}: {{ number_format($offer->cost, 0) }} {{ __('products.currency_sar') }}
{{ __('products.delivery_time') }}: {{ $offer->delivery_time }}
{{ __('products.warranty') }}: {{ $offer->warranty }}
@if($offer->notes)
{{ __('products.notes') }}: {{ $offer->notes }}
@endif
@if ($offer->status == 1)
@endif
{{ __('products.partial_shipment') }} #{{ $partial_receive->id }}
{{ __('nav.shipments') }}
{{ $order->shipments->count() }} {{ __('nav.shipment') }}
@foreach($order->shipments as $shipment)
@endforeach
{{ __('nav.shipment') }} #{{ $shipment->id }}
{{ $shipment->status_label }}
@if($shipment->tracking_number){{ __('nav.tracking_number') }}: {{ $shipment->tracking_number }} | @endif
@if($shipment->shippingMethod){{ $shipment->shippingMethod->name }} | @endif
{{ $shipment->created_at->translatedFormat('M d, Y H:i') }}
@if($shipment->notes)
{{ __('nav.note') }}: {{ $shipment->notes }}
@endif
@if($shipment->images->count() > 0)
@foreach($shipment->images as $img)
@if(in_array(strtolower(pathinfo($img->image_path, PATHINFO_EXTENSION)), ['jpg','jpeg','png','webp']))
@else
@endif
{{ strtoupper(pathinfo($img->image_path, PATHINFO_EXTENSION)) }}
@endif
@endforeach