@extends('layouts.app') @section('title', 'Veículos') @section('page_title', 'Veículos') @section('content')
| Ações | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| {{ $veiculo->placa }} | @php $catClass = match($veiculo->categoria) { \App\Models\Veiculo::CATEGORIA_CAVALO => 'bg-orange-100 text-orange-800', \App\Models\Veiculo::CATEGORIA_CARROCERIA => 'bg-blue-100 text-blue-800', default => 'bg-gray-100 text-gray-700', }; @endphp {{ $veiculo->categoria }} | {{ $veiculo->tipo }} | {{ $veiculo->subtipo ?: '—' }} | {{ $veiculo->tipo_engate ?: '—' }} | {{ $veiculo->tara_kg !== null ? number_format($veiculo->tara_kg, 0, ',', '.') : '—' }} | {{ $veiculo->capacidade_ton !== null ? number_format((float)$veiculo->capacidade_ton, 1, ',', '.') . ' TL' : '—' }} | {{ $veiculo->vinculo ?: '—' }} | @php $stClass = $veiculo->status === 'Ativo' ? 'bg-green-100 text-green-800' : ($veiculo->status === 'Em Manutenção' ? 'bg-yellow-100 text-yellow-800' : 'bg-gray-100 text-gray-700'); @endphp {{ $veiculo->status }} | Editar |
| Nenhum veículo encontrado. | |||||||||