@extends('layouts.partials.master') @section('title', 'Encomendas') @push('styles') @endpush @section('content') @include('layouts.components.section-title', ['title' => 'Encomendas']) {{-- filters - start --}}
| ID | Nº Encomenda | Utilizador | Nr. Produtos | Total | Entrega | Pagamento | Data de Atualização | Estado | Ações |
|---|---|---|---|---|---|---|---|---|---|
| {{ $order->id }} | {{ $order->order_code }} | @if ($order->userDetails && !$order->userDetails->trashed()) {{ $order->user->full_name }} @else {{ $order->user->full_name }} (excluído) @endif | {{ $order->nProducts }} | @formatEuro($order->total) | @php $deliveryModes = collect(); $shippingAddress = $order->shipping_address; $isDigitalDelivery = (bool) $order->digital_delivery; if ($order->has_physical_products) { if ($shippingAddress && !$isDigitalDelivery) { $deliveryModes->push('Morada'); } elseif ($order->pickup_spot) { $deliveryModes->push('Ponto Pickup'); } elseif ($order->at_store_pickup) { $deliveryModes->push('Levantamento em Loja'); } elseif ($order->locker) { $deliveryModes->push('Cacifo'); } } if ($order->has_digital_products) { $deliveryModes->push('Entrega digital'); } @endphp @if ($deliveryModes->isEmpty()) - @else {{ $deliveryModes->unique()->implode(' / ') }} @endif | {{ $order->paymentMethod->name }} | {{ $order->updated_at }} | @include('layouts.components.status', [ 'status' => $order->status, ]) | |
|
{{ __('translations.no_results') }} |
|||||||||