@extends('layouts.app') @section('title', 'Konfirmasi Jadwal Fitting - ' . $appointment->booking_code) @section('content')
@php $isCancelled = in_array($appointment->status, ['cancelled', 'no_show']); @endphp @if(session('success')) @endif @if(session('error')) @endif @if($errors->any()) @endif
@if($isCancelled) @elseif($appointment->payment_status === 'paid') @else @endif

@if($isCancelled) Reservasi Fitting Dibatalkan @elseif($appointment->payment_status === 'paid') Jadwal Fitting Terkonfirmasi! @elseif($appointment->payment_status === 'pending_verification') Bukti Deposit Menunggu Verifikasi @else Reservasi Fitting Tercatat! @endif

Terima kasih, {{ $appointment->customer_name }}. @if($isCancelled) Reservasi ini telah dibatalkan sehingga kuota slotnya telah dilepas kembali. @elseif($appointment->payment_status === 'unpaid' && $appointment->deposit_fee > 0) Silakan selesaikan pembayaran deposit {{ $appointment->formatted_deposit_fee }} untuk mengunci slot fitting Anda. @else Slot privat studio Anda telah dijadwalkan bersama fashion stylist kami. @endif

Kode Reservasi Fitting
{{ $appointment->booking_code }}
@php $badge = $appointment->payment_status_badge; @endphp {{ $badge['label'] }}
Tanggal Sesi:
{{ $appointment->appointment_date->translatedFormat('l, d F Y') }}
Slot Waktu (45 Menit):
{{ $appointment->time_slot }} WIB
Tipe Fitting:
@if($appointment->fitting_type === 'post_booking') Final Fitting Pasca-Booking @else Konsultasi & Coba Studio @endif
WhatsApp Customer:
{{ $appointment->customer_phone }}
Jumlah Tamu:
{{ $appointment->number_of_guests }} Orang @if($appointment->number_of_guests == 2) 1 Fitting Room Bersama @endif
Biaya Deposit Slot:
{{ $appointment->formatted_deposit_fee }}
@if($appointment->order_number)
Nomor Order Terkait:
{{ $appointment->order_number }}
@endif @if($appointment->preferred_size || $appointment->preferred_style)
Preferensi Ukuran / Style:
{{ $appointment->preferred_size ?? '-' }} • {{ $appointment->preferred_style ?? '-' }}
@endif @if($appointment->notes)
Catatan untuk Stylist:
"{{ $appointment->notes }}"
@endif
@if($order && $order->items->count() > 0)
Gaun dari Order Sewa Anda (Disiapkan untuk Fitting):
@foreach($order->items as $item)
@if($item->dress && $item->dress->primary_image_url) {{ $item->dress->name }} @endif
{{ $item->dress->name ?? 'Gaun' }}
{{ $item->dress->code ?? '' }} • Size {{ $item->dress->size ?? '-' }}
@endforeach
@endif
Lokasi Studio: {{ $studioAddress }}
Pengingat Ketentuan Sesi Fitting:
  • Durasi 45 menit / sesi. Datang tepat waktu (waktu tetap dihitung sesuai jadwal jika terlambat).
  • 1 slot hanya untuk 1 orang. Jika reservasi untuk 2 orang, sesi fitting dilaksanakan bersama di dalam 1 fitting room yang sama.
  • Maksimal mencoba 5 dress per orang (tambahan Rp 25.000 per 5 gaun berikutnya).
  • First come first served. Lourent tidak dapat keep dress untuk fitting sebelum dibooking sewa.
  • Booking fee dipotong dari harga sewa jika jadi sewa. No Reschedule (Tidak jadi sewa 1x24 jam setelah fitting = Booking fee hangus).
@php $isFittingExpired = $appointment->isPaymentExpired(); $remainingFittingSecs = $appointment->getRemainingPaymentSeconds(); $fittingExpiryHours = \App\Models\Setting::get('fitting_payment_deadline_hours', 1); @endphp @if($isCancelled)
Reservasi Fitting Telah Dibatalkan

Reservasi dengan kode {{ $appointment->booking_code }} sudah tidak aktif / kuota waktunya telah dilepas kembali. Instruksi pembayaran dan unggah bukti dinonaktifkan agar Anda tidak melakukan transfer untuk jadwal yang sudah batal.

@elseif($appointment->deposit_fee > 0 && $appointment->payment_status !== 'paid') @if($isFittingExpired)
Batas Waktu Pembayaran Deposit Telah Berakhir

Batas waktu pembayaran deposit fitting ({{ $fittingExpiryHours }} Jam) untuk kode reservasi {{ $appointment->booking_code }} telah terlewati pada {{ $appointment->payment_deadline->translatedFormat('d F Y, H:i') }} WIB. Jika Anda sudah melakukan transfer/pembayaran, silakan unggah bukti transfer di bawah agar tim admin kami dapat memverifikasi jadwal Anda secara manual.

@endif
@if($appointment->payment_status === 'pending_verification')
Bukti Deposit Telah Diterima & Slot Anda Aman Terkunci!
Tim admin Lourent sedang memverifikasi bukti pembayaran deposit Anda. Jadwal Anda tidak akan terbatalkan otomatis oleh sistem.
@elseif(!$isFittingExpired)
Batas Waktu Pembayaran Deposit ({{ $fittingExpiryHours }} Jam)
Selesaikan sebelum: {{ $appointment->payment_deadline->translatedFormat('d M Y, H:i') }} WIB
Sisa: -- : -- : --
@endif
Pembayaran Deposit Fitting Studio
Nominal: {{ $appointment->formatted_deposit_fee }}
@if($isQrisActive ?? true)
QRIS Deposit Lourent
{{ $qrisMerchantName }}
NMID: {{ $qrisNmid }}
Scan via M-Banking / E-Wallet
@endif
{{ ($isQrisActive ?? true) ? 'Alternatif Transfer Bank:' : 'Rekening Pembayaran Deposit (Transfer Bank):' }}
@foreach($bankAccounts as $acc)
Bank {{ $acc['bank_name'] ?? 'BCA' }}: {{ $acc['account_number'] ?? '' }} a.n {{ $acc['account_holder'] ?? 'PT LOURENT KARYA INDONESIA' }}
@endforeach
@csrf
@error('payment_sender_name')
{{ $message }}
@enderror
@error('payment_proof')
{{ $message }}
@enderror Format JPG, PNG, WEBP, PDF, HEIC maks 12MB. Tim kami akan segera memverifikasi.
@if($appointment->payment_proof)
Bukti telah diunggah @if($appointment->payment_sender_name) (Pengirim: {{ $appointment->payment_sender_name }}) @endif: Lihat Bukti Anda
@endif
@endif @php $guestNote = $appointment->number_of_guests == 2 ? "2 Orang (Ketentuan: Berada di dalam 1 fitting room yang sama)" : "1 Orang (1 Slot)"; $depositStatusText = match($appointment->payment_status) { 'paid' => 'LUNAS', 'pending_verification' => 'Bukti Transfer Sudah Diunggah (Menunggu Verifikasi Admin)', default => ($appointment->payment_proof ? 'Bukti Transfer Sudah Diunggah' : 'Menunggu Pembayaran') }; $fittingTypeLabel = $appointment->fitting_type === 'post_booking' ? "Final Fitting Pasca-Booking (No. Order: " . ($appointment->order_number ?? '-') . ")" : "Konsultasi & Coba Gaun Studio"; $senderNote = $appointment->payment_sender_name ? ' a.n ' . $appointment->payment_sender_name : ''; $waLines = [ "Halo Admin Lourent Studio (+62 811-8809-9359),", "Saya ingin mengonfirmasi jadwal reservasi fitting studio saya:", "", "📋 *DETAIL RESERVASI FITTING:*", "• *Kode Booking:* " . $appointment->booking_code, "• *Nama Customer:* " . $appointment->customer_name, "• *No. WhatsApp:* " . $appointment->customer_phone, "• *Tanggal:* " . $appointment->appointment_date->translatedFormat('l, d F Y'), "• *Slot Waktu:* " . $appointment->time_slot . " WIB (Durasi 45 Menit)", "• *Jumlah Tamu:* " . $guestNote, "• *Tipe Fitting:* " . $fittingTypeLabel, "• *Booking Fee:* " . $appointment->formatted_deposit_fee . " (" . $depositStatusText . $senderNote . ")", ]; if ($appointment->notes) { $waLines[] = "• *Catatan Stylist:* " . $appointment->notes; } $waLines[] = ""; $waLines[] = "📌 *PENJELASAN & PERNYATAAN KETENTUAN:*"; $waLines[] = "1. Saya memahami 1 slot reservasi hanya untuk 1 orang dengan durasi 45 menit dan bersedia hadir tepat waktu."; if ($appointment->number_of_guests == 2) { $waLines[] = "2. Karena reservasi untuk 2 orang, saya memahami dan menyetujui fitting dilakukan bersama di dalam 1 fitting room yang sama."; } $waLines[] = "3. Saya memahami maksimal mencoba 5 gaun/orang dan Lourent tidak keep dress sebelum dibooking sewa (first come first served)."; $waLines[] = "4. Saya memahami booking fee dipotong saat sewa dan jika tidak jadi sewa 1x24 jam setelah fitting = booking fee hangus (No Reschedule)."; $waLines[] = ""; $waLines[] = "Mohon konfirmasi dan verifikasi ketersediaan jadwal saya di studio Lourent. Terima kasih! ✨"; $waMessage = implode("\n", $waLines); @endphp
Konfirmasi Wajib ke WhatsApp Studio Lourent
Nomor Resmi Studio: +62 811-8809-9359

Sesuai ketentuan, kedatangan tanpa konfirmasi WhatsApp dan deposit akan ditolak. Mohon kirimkan pesan konfirmasi berikut ke Admin WhatsApp kami agar jadwal dan ruangan fitting Anda resmi dikunci di studio.

Ketentuan Slot & Ruang Fitting:
  • 1 slot reservasi hanya untuk 1 orang (Durasi 45 menit).
  • @if($appointment->number_of_guests == 2)
  • Reservasi untuk 2 orang: Sesi fitting dilaksanakan bersama di dalam 1 fitting room yang sama.
  • @else
  • Reservasi untuk 1 orang (1 fitting room).
  • @endif
  • Booking fee Rp {{ number_format($appointment->deposit_fee, 0, ',', '.') }} (dipotong saat sewa gaun jika jadi sewa).
{{ $waMessage }}
@php $cleanSuccWa = preg_replace('/\D/', '', $studioWa ?? '6281188099359'); if (str_starts_with($cleanSuccWa, '0')) { $cleanSuccWa = '62' . substr($cleanSuccWa, 1); } $dispSuccWa = '+' . substr($cleanSuccWa, 0, 2) . ' ' . substr($cleanSuccWa, 2, 3) . '-' . substr($cleanSuccWa, 5, 4) . (strlen($cleanSuccWa) > 9 ? '-' . substr($cleanSuccWa, 9) : ''); @endphp
@endsection @push('scripts') @endpush