@extends('layouts.admin') @section('title', 'Jadwal Fitting Studio') @section('page_title', 'Jadwal Reservasi Fitting Studio') @section('content')

Kelola jadwal fitting customer di Studio dengan slot waktu dinamis (dapat diatur di Pengaturan) dan verifikasi deposit slot.

Mode Timeline Grid Slot Jam Default Form Reservasi Customer
Perhitungan Komisi & Bonus Deal Sewa Fitting Staf
Tarif bonus: Rp {{ number_format($bonusRate ?? 5000, 0, ',', '.') }} / reservasi fitting yang BERHASIL DEAL SEWA GAUN.
Total Bonus Deal Cair:
Rp {{ number_format($totalBonusOverall ?? 0, 0, ',', '.') }}
Dari {{ $totalDealsWithStaff ?? 0 }} deal sewa ({{ $totalFittingWithStaff ?? 0 }} sesi fitting staf)
@if(isset($bonusSummary)) @foreach($bonusSummary as $stfId => $sum)
{{ strtoupper(substr($sum['staff']->name, 0, 1)) }}
{{ $sum['staff']->name }} @if(auth()->id() === $sum['staff']->id) Anda @endif
{{ $sum['deals_count'] }} Deal ({{ $sum['total_count'] }} fitting) • +Rp {{ number_format($sum['bonus'], 0, ',', '.') }}
Deal
@endforeach @endif
@if(isset($dateSchedules) && count($dateSchedules) > 0)
Jadwal Khusus & Tutup Awal Studio ({{ count($dateSchedules) }} Tanggal Terjadwal):
@foreach($dateSchedules as $dDate => $dSch)
{{ \Carbon\Carbon::parse($dDate)->translatedFormat('d M Y') }} @if($dDate === date('Y-m-d')) HARI INI @endif : @if($dSch['type'] === 'early_close') Tutup pk {{ $dSch['close_time'] }} WIB @elseif($dSch['type'] === 'closed') Tutup Seharian @elseif($dSch['type'] === 'custom_capacity') Kuota {{ $dSch['capacity'] ?? 3 }} Slot/Jam @else Slot Khusus @endif @if(!empty($dSch['reason'])) ({{ $dSch['reason'] }}) @endif
@csrf @method('DELETE')
@endforeach
@endif @if(session('deal_success'))
Deal Sewa Gaun Berhasil Diinput!
No. Order: {{ session('deal_success.order_number') }} • Customer: {{ session('deal_success.customer_name') }} • Gaun: {{ session('deal_success.dress_name') }} ({{ session('deal_success.dress_code') }}) • Total: {{ session('deal_success.grand_total') }}
@if(session('deal_success.staff_name'))
Bonus Staf PIC ({{ session('deal_success.staff_name') }}): +Rp {{ number_format(session('deal_success.bonus_amount', 5000), 0, ',', '.') }} (Cair otomatis karena deal sewa tercapai)
@endif
Kirim Konfirmasi ke WA Customer Cetak Struk Detail Order
@endif @if(session('error'))
{{ session('error') }}
@endif
Baru Masuk Hari Ini

{{ $countNewToday ?? 0 }}

Reservasi
Customer booking hari ini • Klik filter
Perlu Verifikasi

{{ $countPendingVerification ?? 0 }}

Bukti Transfer
Menunggu konfirmasi deposit slot
Jadwal Sesi Hari Ini

{{ $countTodayAppointments ?? 0 }}

Sesi Fitting
Customer datang ke studio hari ini
Deposit Belum Bayar

{{ $countUnpaid ?? 0 }}

Booking
Menunggu transfer dalam batas waktu
Semua ({{ $countTotal ?? 0 }}) Baru Masuk Hari Ini ({{ $countNewToday ?? 0 }}) 48 Jam Terakhir Perlu Verifikasi ({{ $countPendingVerification ?? 0 }}) Sesi Hari Ini ({{ $countTodayAppointments ?? 0 }}) Belum Bayar ({{ $countUnpaid ?? 0 }})
@if(request()->filled('tab')) @endif
@if(request()->anyFilled(['search', 'date', 'time_slot', 'staff_id', 'payment_status', 'status', 'tab', 'sort'])) @endif
@forelse($appointments as $app) @php $isNewToday = $app->created_at->isToday(); $isRecent = $app->created_at->gt(now()->subHours(48)); @endphp @empty @endforelse
Kode & Waktu Masuk Customer Jadwal Sesi Deposit Slot Staff PIC (Input) Gaun / Preferensi Acara & Catatan Status Aksi
{{ $app->booking_code }} @if($isNewToday) BARU HARI INI @elseif($isRecent) BARU MASUK @endif
Masuk: {{ $app->created_at->format('d/m/y H:i') }} ({{ $app->created_at->diffForHumans() }})
@if($app->fitting_type === 'post_booking') Final Fitting @if($app->order_number) Order: {{ $app->order_number }} @endif @else Konsultasi Studio @endif
{{ $app->customer_name }}
{{ $app->number_of_guests }} Tamu
{{ $app->appointment_date->format('d/m/Y') }}
{{ $app->time_slot }} WIB
{{ $app->formatted_deposit_fee }}
@php $badge = $app->payment_status_badge; @endphp {{ $badge['label'] }} @if($app->payment_status === 'unpaid' && !$app->isPaymentExpired() && $app->deposit_fee > 0)
Batas: {{ $app->payment_deadline ? $app->payment_deadline->format('H:i') : '-' }} WIB
@endif @if($app->payment_proof) @endif @if($app->payment_sender_name)
{{ $app->payment_sender_name }}
@endif @if($app->payment_status !== 'paid')
@csrf
@endif
@if($app->staff_name || $app->staff)
{{ strtoupper(substr($app->staff_name ?? $app->staff?->name ?? 'S', 0, 1)) }}
{{ $app->staff_name ?? $app->staff?->name }}
@if($app->isDealt()) Deal: +Rp {{ number_format($app->bonus_rate ?? 5000, 0, ',', '.') }} @elseif(in_array($app->status, ['cancelled', 'no_show'])) Bonus: Rp 0 @else +Rp 5rb (Saat Deal) @endif
@else
Belum Ada PIC
@endif
@if(!empty($app->dresses_requested))
@foreach($app->dresses_requested as $dCode) {{ $dCode }} @endforeach
@endif @if($app->preferred_size || $app->preferred_style)
Size: {{ $app->preferred_size ?? '-' }} • Style: {{ $app->preferred_style ?? '-' }}
@elseif(empty($app->dresses_requested)) Pilih di rak studio @endif
@if($app->occasion_event)
{{ $app->occasion_event }}
@endif @if($app->notes)
{{ $app->notes }}
@endif
@php $badgeColor = match($app->status) { 'scheduled' => 'bg-primary-subtle text-primary border-primary-subtle', 'attended' => 'bg-info-subtle text-info border-info-subtle', 'converted_to_rental' => 'bg-success-subtle text-success border-success-subtle', 'no_show' => 'bg-warning-subtle text-warning border-warning-subtle', 'cancelled' => 'bg-danger-subtle text-danger border-danger-subtle', default => 'bg-secondary-subtle text-secondary', }; @endphp {{ ucfirst(str_replace('_', ' ', $app->status)) }} @if($app->order_number) @endif
@if($app->order_number) @else @endif
@csrf @method('DELETE')
@if($app->dressStatusLogs && $app->dressStatusLogs->count() > 0)
@foreach($app->dressStatusLogs as $dsLog) {{ $dsLog->dress->code ?? 'Gaun' }}: Penjahit @endforeach
@endif
Belum ada data jadwal fitting.
@if($appointments->hasPages())
{{ $appointments->onEachSide(1)->links('pagination::bootstrap-5') }}
@endif
@push('scripts') @endpush @endsection