@php // $caminho = "../"; // $carros = api_request('get_all_carros', 'GET')['data']['results']; $titulo = "Carros - SW"; // $carro = [ // 'car_modelo' => 'beleza', // 'car_placa' => 'concordo', // 'car_avaria' => 'discord', // 'car_id' => '1' // ]; // $subtitulo = " Lista de carros"; // $active1 = "class='nav-link btn mr-1 btn-small active text-primary text-center bg-white' href='" . $caminho . "inicio/index.php'"; // $active2 = "class='nav-link ml-1 mr-1 btn btn-small text-white text-center'"; // $active3 = "class='nav-link ml-1 mr-1 btn btn-small text-white text-center'"; // $active4 = "class='nav-link ml-1 mr-1 btn btn-small text-white text-center'"; // $active5 = "class='nav-link ml-1 btn btn-small text-white text-center' data-toggle='modal' data-target='#logoutModal'"; @endphp @include('components.head')
@if (session('success'))
{{ session('success') }}
@endif
@if ($carros->isEmpty())

Sem carros cadastrados.

@else
@foreach ($carros as $carro) {{-- --}} {{-- --}} @endforeach
Modelo Placa Avaria Ação
{{ $carro->car_modelo }} {{ $carro->car_placa }} {{ $carro->car_avaria }} Editar
@endif
{{-- --}} @if ($carroEdit) @endif @include('components.footer') {{-- --}}