@extends('layouts.user') @section('styles') @endsection @section('content')
Detail Kendaraan
{{-- ── LARAVEL VALIDATION ERRORS ── --}} @if ($errors->any())
Terdapat kesalahan pada data yang dimasukkan:
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- ── HERO PREVIEW ── --}}
{{ ucfirst($kendaraan->jenis) }}
{{-- Badge kanan: utama > aktif/nonaktif --}} @if ($kendaraan->utama)
Utama
@else
Aktif
@endif {{-- CAR/MOTOR SVG --}}
{{-- Mobil SVG --}} {{-- Motor SVG --}}
{{ $kendaraan->merek }} {{ $kendaraan->model }}
{{ ucfirst($kendaraan->jenis) }} • {{ $kendaraan->warna ?? 'Warna tidak diatur' }}
{{ $kendaraan->plat_nomor }}
{{-- ── STATS ── --}}
{{ $kendaraan->created_at->format('Y') }}
Terdaftar
{{ $totalParkir }}×
Total Parkir
@if ($totalBayar >= 1000000) Rp {{ number_format($totalBayar / 1000000, 1) }}Jt @elseif($totalBayar >= 1000) Rp {{ number_format($totalBayar / 1000, 0) }}K @else Rp {{ number_format($totalBayar) }} @endif
Total Bayar
{{-- ════════════════════════════════ FORM UPDATE — PUT ke user.kendaraan.update ════════════════════════════════ --}}
@csrf @method('PUT') {{-- Hidden inputs diisi JS --}} {{-- ════ JENIS ════ --}}
Mobil
Sedan, SUV, MPV, dll
Motor
Matic, sport, bebek
{{-- ════ IDENTITAS ════ --}} {{-- Merek --}}
Merek *
@error('merek')
{{ $message }}
@enderror
{{-- Model --}}
Model / Varian *
@error('model')
{{ $message }}
@enderror
{{-- Plat Nomor --}}
Plat Nomor *
@error('plat_nomor')
{{ $message }}
@enderror
{{-- ════ WARNA ════ --}}
Warna Kendaraan Opsional
Warna dipilih: {{ $kendaraan->warna ?? 'Putih' }}
{{-- ════ PREFERENSI ════ --}}
Jadikan Kendaraan Utama
Kendaraan ini digunakan sebagai default saat parkir
Utama
{{-- ════ ACTIONS ════ --}}
{{-- ── DELETE MODAL ── --}} {{-- Hidden form DELETE --}}
@endsection @section('scripts') @endsection