@if ($message = Session::get('success'))
@endif
@if ($message = Session::get('error'))
@endif
| Matrícula |
Descrição |
Compartimentos |
Capacidade Total |
Capacidades por Compartimento |
Ações |
@foreach($cisternas as $cisterna)
| {{ $cisterna->matricula ?: '-' }} |
{{ $cisterna->descricao ?: '-' }} |
{{ $cisterna->numero_compartimentos ?: '-' }} |
{{ !is_null($cisterna->capacidade_total) ? number_format($cisterna->capacidade_total, 2, ',', '.') : '-' }} |
@if(!empty($cisterna->capacidade_por_compartimento))
{{ collect($cisterna->capacidade_por_compartimento)->map(fn ($valor) => number_format((float) $valor, 2, ',', '.'))->implode(' | ') }}
@else
-
@endif
|
@if($permissao->alterar_veiculos)
@endif
@if($permissao->excluir_veiculos)
@endif
|
@endforeach
@foreach($cisternas as $cisterna)
@endforeach
@endsection