Unit Sedang Disewa

Unit aktif yang sedang digunakan.

{{ $activeRentals->count() }} Aktif
@if($activeRentals->count() > 0)
@foreach($activeRentals as $rental)
@foreach($rental->units as $u)
{{ substr($u->seri, 0, 3) }}
{{ substr($u->seri, -2) }}
@endforeach

{{ $rental->units->pluck('seri')->join(', ') }}

{{ explode(' ', trim($rental->nama))[0] }} {{ $rental->waktu_mulai->format('H:i') }} - {{ $rental->waktu_selesai->format('H:i') }}

Sisa

Informasi Penyewa

Alamat Lengkap

{{ $rental->alamat ?: '-' }}

Identitas / NIK

{{ $rental->nik }}

Kode Booking

{{ $rental->booking_code }}

Detail Waktu

Waktu Mulai

{{ $rental->waktu_mulai->translatedFormat('d M Y, H:i') }} WIB

Waktu Selesai

{{ $rental->waktu_selesai->translatedFormat('d M Y, H:i') }} WIB

Ringkasan Biaya

Harga Sewa Rp {{ number_format($rental->subtotal_harga, 0, ',', '.') }}
@if($rental->potongan_diskon > 0)
Total Diskon - Rp {{ number_format($rental->potongan_diskon, 0, ',', '.') }}
@endif
Grand Total Rp {{ number_format($rental->grand_total, 0, ',', '.') }}
@endforeach
@else

Tidak Ada Unit Yang Sedang Disewa

@endif

Unit Akan Disewa

Reservasi yang akan dimulai segera.

{{ $upcomingRentals->count() }} Antrean
@if($upcomingRentals->count() > 0)
@foreach($upcomingRentals as $rental)
@foreach($rental->units as $u)
{{ substr($u->seri, 0, 3) }}
{{ substr($u->seri, -2) }}
@endforeach

{{ $rental->units->pluck('seri')->join(', ') }}

{{ explode(' ', trim($rental->nama))[0] }} {{ $rental->waktu_mulai->format('d M, H:i') }}

Mulai

Informasi Penyewa

{{ $rental->nik }}

Kode Booking

{{ $rental->booking_code }}

Jadwal Sewa

Durasi: {{ $rental->waktu_mulai->diffInHours($rental->waktu_selesai) }} Jam

{{ $rental->waktu_mulai->format('d M, H:i') }} s/d {{ $rental->waktu_selesai->format('d M, H:i') }}

Pembayaran

Paid / Confirmed
@endforeach
@else

Tidak Ada Reservasi Mendatang

@endif
@if($this->selectedRental) @php $r = $this->selectedRental; @endphp

Detail Transaksi

{{ $r->booking_code }} • {{ $r->created_at->format('d M Y') }}

Status Transaksi

@if($r->status === 'pending') Menunggu Pembayaran @elseif($r->status === 'paid') Dibayar (Aktif) @elseif($r->status === 'completed') Selesai @else Dibatalkan @endif

Booking Code

{{ $r->booking_code }}

Informasi Penyewa

Nama Lengkap

{{ $r->nama }}

Kontak WhatsApp

{{ $r->no_wa }}

Identitas (NIK)

{{ $r->nik }}

Detail Unit & Waktu

Unit Yang Disewa

@foreach($r->units as $u)

{{ $u->seri }}

{{ $u->warna }}

@endforeach

Jadwal Mulai

{{ $r->waktu_mulai->format('d M Y, H:i') }}

Jadwal Selesai

{{ $r->waktu_selesai->format('d M Y, H:i') }}

Ikhtisar Pembayaran

@if($r->potongan_diskon > 0) @endif @if($r->denda > 0 || $r->denda_kerusakan > 0) @endif
Harga Dasar Sewa Rp {{ number_format($r->subtotal_harga, 0, ',', '.') }}
Potongan Diskon / Promo - Rp {{ number_format($r->potongan_diskon, 0, ',', '.') }}
Kode Unik / Service Fee + Rp {{ $r->kode_unik_pembayaran }}
Total Denda + Rp {{ number_format($r->denda + $r->denda_kerusakan, 0, ',', '.') }}
TOTAL AKHIR Rp {{ number_format($r->grand_total, 0, ',', '.') }}
Riwayat Transaksi
@else

Menghubungkan Server...

@endif