@extends('layouts.admin') @section('title', 'Kendaraan Terlaris | Super Admin') @section('page_title', 'Kendaraan Terlaris') @push('styles') @endpush @section('content') @php $topBookedVehicle = $topVehicles->first(); $totalValidBookings = (int) $topVehicles->sum('verified_booking_count'); $totalVehicleRevenue = (float) $topVehicles->sum(fn($vehicle) => (float) ($vehicle->total_revenue ?? 0)); @endphp

Kendaraan Terlaris

Laporan ranking kendaraan berdasarkan booking valid dan total pendapatan.

Kembali ke Laporan
@if ($errors->any()) @endif
Reset

Total Kendaraan Tercatat

{{ number_format($topVehicles->count(), 0, ',', '.') }}

sesuai hasil filter

Top Booked Vehicle

{{ $topBookedVehicle?->name ?? '-' }}

{{ $topBookedVehicle?->rentalCompany?->company_name ?? '-' }}

Total Booking Valid

{{ number_format($totalValidBookings, 0, ',', '.') }}

Total Pendapatan Kendaraan

Rp {{ number_format($totalVehicleRevenue, 0, ',', '.') }}

Data Kendaraan Terlaris

Bandingkan performa kendaraan antar rental berdasarkan booking valid dan revenue.

@if ($topVehicles->count() > 0)
@foreach ($topVehicles as $index => $vehicle) @endforeach
No Nama Kendaraan Rental Brand Kategori Total Booking Valid Total Pendapatan
{{ $index + 1 }} {{ $vehicle->name }} {{ $vehicle->rentalCompany?->company_name ?? '-' }} {{ $vehicle->brand ?? '-' }} {{ $vehicle->category ?? '-' }} {{ number_format((int) ($vehicle->verified_booking_count ?? 0), 0, ',', '.') }} Rp {{ number_format((float) ($vehicle->total_revenue ?? 0), 0, ',', '.') }}
@else

Belum ada data kendaraan terlaris

Belum ada data laporan untuk filter yang dipilih.

@endif
@endsection