@extends('layouts.app') @section('content')
| Produto | Quantidade | Preço Unitário | Subtotal |
|---|---|---|---|
|
@if($item->produto->imagem)
|
{{ $item->quantidade }} | R$ {{ number_format($item->preco, 2, ',', '.') }} | R$ {{ number_format($item->preco * $item->quantidade, 2, ',', '.') }} |
Nome: {{ $order->cliente->name ?? 'Não informado' }}
Endereço de Entrega: {{ $order->endereco_entrega }}
Status Atual: {{ ucfirst(str_replace('_', ' ', $order->status)) }}
Pagamento: {{ ucfirst($order->pagamento_status) }}
@if($order->entregador_id)Entregador: {{ $order->entregador->name ?? 'Não encontrado' }}
@endif {{-- SÓ MOSTRA AS AÇÕES SE O PEDIDO NÃO FOI ENTREGUE OU CANCELADO --}} @if($order->status !== 'entregue' && $order->status !== 'cancelado')