@extends('layouts.blank', ['title' => 'Portal bloqueado']) @section('content') @php $kind = $order->trackingLockKind(); $title = match ($kind) { 'delivered' => 'Pedido ya entregado', 'cancelled' => 'Pedido cancelado', 'failed' => 'Entrega fallida', default => 'Portal bloqueado', }; $icon = match ($kind) { 'delivered' => 'bi-check-circle-fill text-success', 'cancelled' => 'bi-x-circle-fill text-danger', 'failed' => 'bi-exclamation-triangle-fill text-warning', default => 'bi-lock-fill text-secondary', }; @endphp

{{ $title }}

{{ $order->number }}

@include('tracking.partials.client-heading') @if($order->dispatcher_name)

Despachador: {{ $order->dispatcher_name }}

@endif @if($order->tracking_locked_at)

Bloqueado el {{ $order->tracking_locked_at->format('d/m/Y H:i') }}

@endif @if($order->tracking_outcome_notes && in_array($kind, ['cancelled', 'failed'], true))
Motivo
{{ $order->tracking_outcome_notes }}
@endif @if($kind === 'delivered')

Pago: {{ $order->paymentMethodLabel() }} · ${{ number_format((float) $order->total, 2) }}

Este código QR ya no permite más cambios. La venta quedó registrada.
@else
El portal está bloqueado. Solo un administrador puede reabrirlo desde el panel de control.
@endif
@endsection