AutoScout Model Mapping

@if(session('success'))
{{ session('success') }}
@endif
@forelse($vehicles as $vehicle) @php $brand = strtolower(trim($vehicle->brand)); if ($brand === 'cfmoto' || $brand === 'cf moto') { $brand = 'cf-moto'; } if ($brand === 'enfield') { $brand = 'royal-enfield'; } if ($brand === 'smc') { $brand = 'smc-sm'; } if ($brand === 'fantic motor' || $brand === 'Fantic Motor') { $brand = 'fantic'; } if ($brand === 'Moto Guzzi' || $brand === 'moto guzzi') { $brand = 'moto-guzzi'; } if ($brand === 'Mv Agusta' || $brand === 'mv agusta') { $brand = 'mv-agusta'; } $modelKeys = \App\Models\AutoscoutModel::where( 'brand', $brand ) ->orderBy('model_name') ->get(); @endphp @empty @endforelse
ID Brand FzInterneNr Vehicle Model Current Model Key Mapping Status Change Model Key
{{ $vehicle->id }} {{ strtoupper($vehicle->brand) }} {{ $vehicle->FzInterneNr}} {{ $vehicle->vehicle_model }}
Year :{{$vehicle->year_of_construction}}
Power KW :{{$vehicle->power_kW}}
Engine :{{$vehicle->displacement}}
{{ $vehicle->autoscout_model_key ?? '-' }} @if($vehicle->mapping_status === 'mapped') Mapped @elseif($vehicle->mapping_status === 'manual') Manual Required @elseif($vehicle->mapping_status === 'no_autoscout_models') No AutoScout Models @else Pending @endif @if($vehicle->mapping_status === 'mapped') ({{$vehicle->match_type}}) @endif
@csrf
No vehicles found.
{{ $vehicles->links() }}