@php
$securityOptions = $carVehicles->getCarVehiclesSecurityProperty->pluck('car_vehicle_property_id','car_vehicle_property_id');
$securityDropDownOptions = $carVehicles->getCarVehiclesSecurityProperty->pluck('car_vehicle_property_id','car_vehicle_property_value');
$multimediaOptions = $carVehicles->getCarVehiclesMultimediaProperty->pluck('car_vehicle_property_id','car_vehicle_property_id');
$seatOptions = $carVehicles->getCarVehiclesSeatProperty->pluck('car_vehicle_property_id','car_vehicle_property_id');
$InteriorOptions = $carVehicles->getCarVehiclesInteriorProperty->pluck('car_vehicle_property_id','car_vehicle_property_id');
$InteriorDropDownOptions = $carVehicles->getCarVehiclesInteriorProperty->pluck('car_vehicle_property_id','car_vehicle_property_value');
$ExteriorOptions = $carVehicles->getCarVehiclesExteriorProperty->pluck('car_vehicle_property_id','car_vehicle_property_id');
@endphp
@foreach($carSecurityStabilizationOption as $carSecurityStabilizationKey => $carSecurityStabilizationValue)
@if($subSubCategory->slug == "motorcycles")
@if($carSecurityStabilizationValue->type == \App\Models\CarsVehiclesAdvertisment::MOTOR_SECURITY_OPTION)
@elseif($carSecurityStabilizationValue->type == \App\Models\CarsVehiclesAdvertisment::MOTOR_SECURITY_DROPDOWN_OPTION)
{{__("cars.$carSecurityStabilizationValue->name")}}
@php
$typeData = $carSecurityStabilizationValue->type_value
@endphp
Select
@foreach($typeData as $typeKey => $typeValue)
id]) && isset($securityDropDownOptions[$typeValue])) selected @endif value="{{$typeValue}}">{{__("cars.$typeValue")}}
@endforeach
@endif
{{-- In Case of Trailers SubCategory --}}
@elseif($subSubCategory->slug == "trailers")
@if($carSecurityStabilizationValue->type == \App\Models\CarsVehiclesAdvertisment::TRAILER_SECURITY_OPTION)
{{-- @elseif($carSecurityStabilizationValue->type == \App\Models\CarsVehiclesAdvertisment::TRAILER_SECURITY_DROPDOWN_OPTION)
{{__("cars.$carSecurityStabilizationValue->name")}}
@php
$typeData = $carSecurityStabilizationValue->type_value
@endphp
Select
@foreach($typeData as $typeKey => $typeValue)
id]) && isset($securityDropDownOptions[$typeValue])) selected @endif value="{{$typeValue}}">{{__("cars.$typeValue")}}
@endforeach
--}}
@endif
@else
@if($carSecurityStabilizationValue->type == \App\Models\CarDetail::CAR_SECURITY_OPTION)
@elseif($carSecurityStabilizationValue->type == \App\Models\CarDetail::CAR_SECURITY_DROPDOWN_OPTION)
{{__("cars.$carSecurityStabilizationValue->name")}}
@php
$typeData = $carSecurityStabilizationValue->type_value
@endphp
Select
@foreach($typeData as $typeKey => $typeValue)
id]) && isset($securityDropDownOptions[$typeValue])) selected @endif value="{{$typeValue}}">{{__("cars.$typeValue")}}
@endforeach
@endif
@endif
@endforeach
@if($subSubCategory->slug !="trailers")
{{__("detail.Interior Equipment")}}
{{__("words.Choose all the interior options that the car has")}}
@foreach($carInteriorOption as $carInteriorKey => $carInteriorValue)
@if($subSubCategory->slug == "trucks" && $carInteriorValue->type == 1)
@elseif($subSubCategory->slug == "buses" && ($carInteriorValue->type == 1 || $carInteriorValue->type == 3))
@elseif($carInteriorValue->type == 2)
{{ __("cars.$carInteriorValue->name") }}
@php
$typeData = $carInteriorValue->type_value;
@endphp
{{ __("words.Select") }}
@foreach($typeData as $typeKey => $typeValue)
id]) && isset($InteriorDropDownOptions[$typeValue])) selected @endif>{{ __("cars.$typeValue") }}
@endforeach
@endif
@endforeach