@props(['vehicle', 'fuelType', 'brand', 'class', 'vendor']) @php /** @var \App\Models\Vehicle $vehicle */ @endphp

{{ $vehicle->getVehicleName() }}

@foreach(explode(',', env('FIELDS')) as $field) @switch($field) @case('brand') {{ __('Brand') }}: {{ $brand }} @break @case('class') {{ __('Class') }}: {{ $class }} @break @case('storage') {{ __('Storage') }}: {{ $vehicle->getVehicleStorage() }} @break @case('fuel_type') {{ __('Fuel Type') }}: {{ $fuelType }} @break @case('fuel_volume') {{ __('Fuel Volume') }}: {{ $vehicle->getVehicleFuelVolume() }} @break @case('seats') {{ __('Seats') }}: {{ $vehicle->getVehicleSeats() }} @break @case('price') {{ __('Price') }}: {{ $vehicle->getVehiclePrice() }} @break @case('top_speed') {{ __('Top Speed') }}: {{ $vehicle->getVehicleTopSpeed() }} @break @default @endswitch @endforeach