@extends('layouts.app') @section('title', 'Jetour '.$model->name.' — Oscar World Klang') @section('description', $model->price.' • Official Jetour '.$model->name.' at Oscar World Klang, Prima Klang Avenue.') @section('content') @php $waNumber = $settings['whatsapp_number'] ?? '60123456789'; $defaultColor = $model->defaultColor(); $viewerColors = $model->colors->map(fn ($c) => [ 'id' => $c->id, 'name' => $c->name, 'hex' => $c->hex_code ?: '#e5e5e5', 'images' => $c->images->pluck('image_url')->values()->all(), ])->values(); @endphp
← Back to all models
@if ($defaultColor && $viewerColors->isNotEmpty())
Jetour {{ $model->name }}
↔ Drag to rotate 360°
@if ($viewerColors->count() > 1)
Color:
@foreach ($viewerColors as $c) @endforeach
{{ $defaultColor->name }}
@else

{{ $defaultColor->name }}

@endif
@else
Jetour {{ $model->name }}
@endif

Jetour

{{ $model->name }}

@if ($model->badge) {{ $model->badge }} @endif
{{ $model->price }} @if ($model->original_price) {{ $model->original_price }} @endif

OTR Peninsular Malaysia • While stocks last

@php($branches = $model->branchAvailability()) @if ($branches->isNotEmpty())
@foreach ($branches as $i => $branch) @endforeach
Branch Price Availability
{{ $branch->location->name }} {{ $branch->price }} @if ($branch->original_price) {{ $branch->original_price }} @endif @if ($branch->in_stock) In Stock @else Out of Stock @endif
@endif
    @foreach (($model->bullets ?? []) as $bullet)
  • ✓ {{ $bullet }}
  • @endforeach
@if (!empty($model->specs))
@foreach ($model->specs as $i => $spec) @endforeach
Warranty {{ $model->warranty }}
{{ $spec['label'] }} {{ $spec['value'] }}
@endif
@if ($otherModels->count())

Other Jetour Models

@foreach ($otherModels as $other) @include('partials.model-card', ['model' => $other, 'settings' => $settings]) @endforeach
@endif @if ($defaultColor && $viewerColors->isNotEmpty()) @endif @endsection