@extends('layouts.admin') @section('title', 'Reserva #' . $reserva->id) @section('content') ← Voltar para reservas
{{-- DETALHES --}}
{{-- Veículo --}}

🚗 Veículo

@if($reserva->veiculo->foto_capa_url) {{ $reserva->veiculo->marca }} @endif

{{ $reserva->veiculo->marca }} {{ $reserva->veiculo->modelo }}

{{ $reserva->veiculo->ano }} · {{ $reserva->veiculo->cambio_label }} · {{ $reserva->veiculo->combustivel_label }}

{{-- Período --}}

📅 Período

Início

{{ \Carbon\Carbon::parse($reserva->data_inicio)->format('d/m/Y') }}

Fim

{{ \Carbon\Carbon::parse($reserva->data_fim)->format('d/m/Y') }}

Tipo

{{ $reserva->tipo_periodo_label }}

Valor Total

R$ {{ number_format($reserva->valor_total, 2, ',', '.') }}

@if($reserva->observacoes_cliente)

OBSERVAÇÕES DO CLIENTE

{{ $reserva->observacoes_cliente }}

@endif
{{-- Cliente --}}
@foreach([ ['Nome', $reserva->cliente->nome], ['CPF', $reserva->cliente->cpf], ['RG', $reserva->cliente->rg], ['CNH', $reserva->cliente->cnh_numero], ['Telefone', $reserva->cliente->telefone], ['E-mail', $reserva->cliente->email], ['Endereço', $reserva->cliente->endereco_completo], ['CNPJ', $reserva->cliente->cnpj], ['Empresa', $reserva->cliente->empresa], ] as [$label, $val]) @if($val)
{{ $label }}

{{ $val }}

@endif @endforeach
@if($reserva->cliente->cnh_path) @endif
{{-- SIDEBAR: STATUS --}}
{{-- Status atual --}}

Status da Reserva

{{ $reserva->status_label }}

Criada em {{ $reserva->created_at->format('d/m/Y H:i') }}

{{-- Atualizar status --}}
@csrf @method('PATCH')
{{-- WhatsApp --}}
@endsection