Encomenda #{{ $order->id }}

{{ $order->created_at->format('d/m/Y H:i') }}
Voltar
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
Dados do Cliente
@if($order->notes) @endif
Nome:{{ $order->customer_name }}
Email:{{ $order->customer_email }}
Telefone:{{ $order->customer_phone }}
Morada:{{ $order->customer_address }}
CP:{{ $order->customer_postcode }}, {{ $order->customer_city }}
País:{{ $order->customer_country }}
Notas:{{ $order->notes }}
Produtos
@foreach($order->items as $item) @endforeach @if($order->discount_amount > 0) @endif @if($order->coupon_discount > 0) @endif @if($order->iva_amount > 0) @endif
ProdutoQtdPreçoTotal
{{ $item->product->name }} @if($item->variant_label)
{{ $item->variant_label }} @endif
{{ $item->quantity }} {{ number_format($item->price, 2) }}€ {{ number_format($item->price * $item->quantity, 2) }}€
Subtotal{{ number_format($order->subtotal, 2) }}€
Desconto-{{ number_format($order->discount_amount, 2) }}€
Cupão ({{ $order->coupon_code }})-{{ number_format($order->coupon_discount, 2) }}€
IVA{{ number_format($order->iva_amount, 2) }}€
Total{{ number_format($order->total, 2) }}€
Pagamento

Método: {{ ucfirst($order->payment_method) }}

Status: @switch($order->status) @case('pending')Pendente@break @case('processing')Em Processamento@break @case('shipped')Enviado@break @case('delivered')Entregue@break @case('cancelled')Cancelado@break @endswitch

Atualizar Status
@csrf @method('PUT')
@if(in_array($order->status, ['pending', 'cancelled']))
Apagar Encomenda
@csrf @method('DELETE')
@endif @php $hasDigital = $order->hasDigitalProducts(); @endphp @if($hasDigital)
Downloads Digitais
@if($order->downloads_released)
Downloads libertados em {{ $order->downloads_released_at?->format('d/m/Y H:i') }}
@csrf
@if(\App\Models\Setting::get('whatsapp_enabled') === '1') Notificar por WhatsApp @endif @else

Esta encomenda contém produtos digitais. Liberte os downloads após confirmar o pagamento.

@csrf
Libertar + WhatsApp
@csrf
@endif
Produtos digitais nesta encomenda:
    @foreach($order->items as $item) @if($item->product->is_digital)
  • {{ $item->product->name }} @if($item->variant_label)
    {{ $item->variant_label }} @endif @if($item->product->file_url && !$item->product->file_path) Link @elseif($item->product->file_path && !$item->product->file_url) Ficheiro @elseif($item->product->file_path && $item->product->file_url) Ficheiro + Link @endif
  • @endif @endforeach
@endif @if(\App\Models\Setting::get('whatsapp_enabled') === '1')
Notificações
Enviar WhatsApp
@endif