@extends('layouts.app') @section('styles') @section('content')
@if($requireRoom)

DASHBOARD RUANGAN

LIVE
@foreach($rooms as $r)
{{ $r->number }}
@endforeach
@endif

Layanan Utama

@foreach($services as $s)
{{ $s->icon }}

{{ $s->name }}

{{ $s->duration }} Menit • {{ $s->level }}
Rp {{ number_format($s->price, 0, ',', '.') }}
@endforeach

Produk Tambahan

@foreach($products as $p)

{{ $p->name }}

Stok: {{ $p->stock }} • {{ $p->category }}
+Rp {{ number_format($p->price, 0, ',', '.') }}
@endforeach

Terapis Live

Semua Spesialis
@foreach($therapists as $t)
{{ $t->sessions_today ?? 0 }} Sesi
{{ $t->name }}
{{ $t->name }}
{{ $t->skill }}
@if($t->status == 'busy')
@endif @if(!$requireRoom && $t->status === 'busy') @endif
@endforeach

STATUS PAGING

3 Terapis Menunggu Konfirmasi

Checkout Sesi

Pilih layanan & terapis
untuk mulai

Corporate Mode
Subtotal: Rp 0
Total: Rp 0
@if($requireRoom)

Floor Plan & Live Occupancy

Tersedia
Terisi
Perbaikan
@foreach($rooms as $r) @php $session = $transactions->where('room_id', $r->id)->where('status', 'pending')->sortByDesc('id')->first(); $duration = $session ? (int) ($session->service->duration ?? 60) : 0; $startTime = $session ? $session->created_at->timestamp : 0; $therapistId = $session ? $session->therapist_id : null; @endphp
{{ $r->number }}
🛏️
{{ $r->status == 'occupied' ? ($session->customer_name ?? 'Pelanggan') : 'KOSONG' }}
@if($r->status == 'occupied')
@if($session) ⏱️ Menghitung… @else ⚠ Ruang “terisi” tanpa transaksi aktif (pending). Sesuaikan di master atau klik Selesai. @endif
@endif
@endforeach
@endif @if(auth()->user()->canViewPosManagementTabs())

Transaksi Terakhir

@foreach($transactions as $t) @endforeach
ID TRX Pelanggan Layanan Terapis Total
#TX98{{ $t->id }} {{ $t->customer_name ?: 'Guest' }} {{ $t->service->name ?? 'N/A' }} {{ $t->therapist->name ?? 'N/A' }} Rp {{ number_format($t->total_price, 0, ',', '.') }}

Analisis Komisi

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

TOTAL OMZET HARI INI

📦 PERINGATAN STOK

@foreach($products->where('stock', '<', 5) as $low)
{{ $low->name }} SISA {{ $low->stock }}
@endforeach @if($products->where('stock', '<', 5)->count() == 0)
Semua stok aman ✅
@endif
Komisi Terapis: Rp {{ number_format($todayCommTherapist, 0, ',', '.') }}
Kas Outlet: Rp {{ number_format($todayOutlet, 0, ',', '.') }}

Performa Unggulan (Top Stars)

Bulan April 2026
@foreach($therapists->sortByDesc('sessions_today')->take(3) as $key => $top)
{{ $key + 1 }}

{{ $top->name }}

{{ $top->skill }}

{{ $top->sessions_today }}
Sesi
4.9
Rating
@endforeach

Status & Kontrol Terapis

@foreach($therapists as $t) @endforeach
TEMAN / SPESIALIS STATUS SISA AKSI
{{ $t->name }}
{{ $t->skill }} • {{ (int) ($t->sessions_today ?? 0) }} sesi
@if($t->status === 'available') Tersedia @elseif($t->status === 'busy') Sibuk @else Off @endif
@csrf @method('PATCH')
@csrf @method('PATCH')
@if(!$requireRoom && $t->status === 'busy') @endif

Live Intensity Pulse

{{ $therapists->where('status', 'busy')->count() }} / {{ $therapists->count() }}

Terapis Aktif Melayani

@foreach(range(1, 15) as $r)
@endforeach
@endif @endsection @section('scripts') @endsection