@extends('layouts.admin') @section('title',$order->number) @section('content')

{{ $order->number }}

{{ $order->created_at->format('d/m/Y · H:i') }} · {{ ['web'=>'Tienda online','local'=>'Local físico','whatsapp'=>'WhatsApp'][$order->channel]??$order->channel }}

Todos los pedidos
@if($order->payment_method==='demo')
Este pedido es de prueba. Confirmarlo modifica el stock de muestra, pero no cobra dinero ni suma a los reportes.
@endif @if($order->payment_status==='review')
El pago fue recibido, pero el pedido necesita revisión de stock o fue cancelado. No lo entregues automáticamente. Coordiná la resolución con el cliente y gestioná el reembolso en Mercado Pago si corresponde.
@endif

Prendas del pedido

{{ $order->payment_label }}
@foreach($order->items as $item)@endforeach
PrendaCantidadPrecioTotal
{{ $item->name }}{{ $item->color }} / {{ $item->size }} · {{ $item->sku }}
{{ $item->quantity }}@money($item->unit_price)@money($item->quantity*$item->unit_price)
Subtotal@money($order->subtotal)
Descuento {{ $order->coupon_code }}− @money($order->discount)
Envío@money($order->shipping)
Total@money($order->total)

Preparación y entrega

{{ $order->fulfillment_label }}

@if($order->payment_status==='approved')
@csrf @method('patch')
@else

La preparación se habilita al confirmar el pago y asignar el stock.

@endif
@if($order->paid_payment_id)

Pago registrado

Identificador
{{ $order->paid_payment_id }}
Confirmado
{{ $order->paid_at?->format('d/m/Y H:i') }}
@if($order->payment_method==='mercadopago')

Los reembolsos se gestionan en tu cuenta de Mercado Pago. La notificación actualizará el pedido. Reponé stock únicamente cuando recibas la mercadería.

@endif @if(in_array($order->payment_status,['refunded','charged_back']) && $order->stock_state==='sold' && auth()->user()->role==='admin')
@csrf
@endif
@endif

Cliente

Nombre
{{ $order->name }}
Correo
{{ $order->email }}
Teléfono
{{ $order->phone }}
Entrega
{{ $order->delivery==='pickup'?'Retiro coordinado':'Envío a domicilio' }}
@if($order->delivery==='shipping')
Domicilio
{{ $order->address }}
{{ $order->city }}, {{ $order->province }}
CP {{ $order->postal_code }}
@endif @if($order->notes)
Notas del cliente
{{ $order->notes }}
@endif

Acciones del pedido

Medio de pago: {{ ['manual'=>'Cobro manual','demo'=>'Prueba local','mercadopago'=>'Mercado Pago'][$order->payment_method]??$order->payment_method }}

@if(!$order->paid_payment_id && in_array($order->payment_method,['manual','demo']))
@csrf
@endif @if(!$order->paid_payment_id && $order->stock_state==='reserved')

Reserva hasta {{ $order->reserved_until->format('d/m/Y H:i') }}.

@csrf
@endifVer seguimiento del cliente
@endsection