Drive Confident

VIN = {{$vin}}

VIN Decoder Report

تقرير رقم شاصيه مركبة

{{$manufacturer." ".$model." ".$year." ".$trim}}

Color

{{$color}}

Engine type - نوع الوقود

{{isset($specifications["engine_type"]) ? $specifications["engine_type"] : '-'}}

Trim - اصدار المركبة

{{$trim}}

Drive - الدفع

{{isset($specifications["drive"]) ? $specifications["drive"] : '-'}}

Upper Limit

{{number_format($upper_limit)}}

Evaluated price

{{number_format($evaluated_price)}}

Lower Limit

{{number_format($lower_limit)}}

Future Residual Values

اﻟﻘﻴﻢ اﻟﻤﺴﺘﻘﺒﻠﻴﺔ

@php $todayPrice = $priceList[0]['price']; $customData = [ [ 'barWidth' => 32, 'right' => '10px', 'transform' => 'translateX(293px)', 'strockColor' => '#C0E1F4', 'bgColor' => '#53BAF5', ], [ 'barWidth' => 45, 'right' => '20px', 'transform' => 'translateX(237px)', 'strockColor' => '#95D3F8', 'bgColor' => '#399ADF', ], [ 'barWidth' => 59, 'right' => '50px', 'transform' => 'translateX(177px)', 'strockColor' => '#3874C6BF', 'bgColor' => '#3881CF', ], [ 'barWidth' => 72, 'right' => '90px', 'transform' => 'translateX(118px)', 'strockColor' => '#3765BDBF', 'bgColor' => '#3758B4', ], [ 'barWidth' => 86, 'right' => '110px', 'transform' => 'translateX(60px)', 'strockColor' => '#374DADBF', 'bgColor' => '#3751AF', ], [ 'barWidth' => 100, 'right' => '150px', 'transform' => 'translateX(0px)', 'strockColor' => '#363BA1BF', 'bgColor' => '#363BA1', ], ]; $timelineData = []; foreach ($priceList as $index => $priceItem) { $percentage = $todayPrice > 0 ? round(($priceItem['price'] / $todayPrice) * 100) : 0; $color = $customData[$index] ?? [ 'barWidth' => 0, 'right' => '0px', 'transform' => 'translateX(0px)', 'strockColor' => '#000000', 'bgColor' => '#000000', ]; $timelineData[] = [ 'percentage' => $percentage, 'barWidth' => $color['barWidth'], 'amount' => 'SAR. ' . number_format($priceItem['price']), 'right' => $color['right'], 'strockColor' => $color['strockColor'], 'bgColor' => $color['bgColor'], 'transform' => $color['transform'], ]; } @endphp @foreach ($priceList as $index => $priceItem) @php // Extract label and date preg_match('/^(.*?)\s*(\(.+\))$/', $priceItem['title'], $matches); $label = $matches[1] ?? $priceItem['title']; $date = $matches[2] ?? ''; // Determine class switch ($index) { case 0: $class = 'today'; break; case 1: $class = 'one-year'; break; case 2: $class = 'two-year'; break; case 3: $class = 'three-year'; break; case 4: $class = 'four-year'; break; case 5: $class = 'five-year'; break; default: $class = 'other'; break; } @endphp

{{ $label }}

{{ $date }}

@endforeach {{--

1 Year

(06-03-2026)

2 Year

(06-03-2027)

3 Year

(06-03-2028)

4 Year

(06-03-2029)

5 Year

(06-03-2030)

--}}

Financial Risks

{{ucFirst($financial_risk_index??"-")??"-"}}

Generation Name

{{$vehicleTrim->generation_name??"-"}}

Generation Start Year

{{$vehicleTrim->generation_start_years??"-"}}

Generation End Year

{{$vehicleTrim->generation_end_years??"-"}}

Reliability Index

{{$reliability_index_score??"-"}}

@isset($specifications)

Specifications :

    @foreach ($specifications as $key=>$specification)
  • {{ ucFirst(str_replace("_"," ",$key)) }}: {{$specification}}
  • @endforeach
@endif @isset($safety_features)

Safety Features :

@foreach ($safety_features as $key=>$safety_feature) @if ($loop->last) @continue @endif

{{$key}}:

    @foreach ($safety_feature as $featureTitle=>$featureVal)
  • {{$featureTitle}}: {{$featureVal}}
  • @endforeach
@endforeach
@endif @isset($safety_features)
@foreach ($safety_features as $key=>$safety_feature) @if (!$loop->last) @continue @endif

{{$key}}:

    @foreach ($safety_feature as $featureTitle=>$featureVal)
  • {{$featureTitle}}: {{$featureVal}}
  • @endforeach
@endforeach

Vehicle Measurements :

    @foreach ($vehicle_measurements as $key=>$vehicle_measurement)
  • {{ ucFirst(str_replace("_"," ",$key)) }}: {{$vehicle_measurement}}
  • @endforeach
@endif