@extends('layouts.admin') @section('title', 'Kalender Ketersediaan Gaun') @section('page_title', 'Kalender Ketersediaan Stok Gaun') @section('content')

Matrix visual jadwal rental seluruh gaun. Lihat tanggal terbooking, jadwal fitting, dan ketersediaan stok.

Bulan Lalu
{{ $startOfMonth->translatedFormat('F Y') }}
Bulan Depan
Keterangan:
Penuh Semua Pcs Tersewa
1/2 Sebagian Tersewa (Ada Sisa)
• Tersedia Bebas
@if(request()->filled('search') || (request()->filled('category_id') && request('category_id') !== 'all')) @endif
@foreach($days as $day) @endforeach @forelse($dresses as $dress) @foreach($days as $day) @php $cell = $schedule[$dress->id][$day['date_string']] ?? null; $bookedCount = $cell['booked_count'] ?? 0; $stockTotal = $dress->stock_total ?? 1; $bookings = $cell['bookings'] ?? []; @endphp @endforeach @empty @endforelse
Koleksi Gaun
{{ $day['day_number'] }}
{{ substr($day['day_name'], 0, 1) }}
{{ $dress->name }}
{{ $dress->name }}
{{ $dress->code }} • {{ $dress->size }} • {{ $dress->stock_total }} Pcs
@if($bookedCount > 0) @php $tooltipText = collect($bookings)->map(fn($b) => $b['order_number'] . ' (' . $b['customer_name'] . ')')->implode(', '); $isFull = $bookedCount >= $stockTotal; @endphp
@if($isFull)
@if($stockTotal > 1) {{ $bookedCount }}/{{ $stockTotal }} @endif
@else
{{ $bookedCount }}/{{ $stockTotal }}
@endif
@else • @endif
@if(request('search')) Tidak ditemukan gaun dengan SKU atau nama "{{ request('search') }}". @else Belum ada gaun terdaftar. @endif
@endsection @push('scripts') @endpush