@extends('layout') @php $isTalentView = auth()->check() && (!empty(auth()->user()->is_talent) || (auth()->user()->role ?? '') === 'talent'); @endphp @section('content')

Mulai Sesi Saya

@if($bookings->isEmpty())
Anda belum memiliki Mulai Sesi.
@else
@foreach($bookings as $booking)
@if($isTalentView) @if($booking->customer->avatar) {{ $booking->customer->name }} @else {{ $booking->customer->name }} @endif
{{ $booking->customer->name }} @php $level = $booking->customer->customer_level ?? 'bronze'; $levelIcons = ['bronze' => '🥉', 'silver' => '🥈', 'gold' => '🥇']; $levelBgClasses = ['bronze' => 'warning', 'silver' => 'info', 'gold' => 'success']; @endphp {{ $levelIcons[$level] ?? '🥉' }}
Customer
@else @if($booking->talent->avatar) {{ $booking->talent->name }} @else {{ $booking->talent->name }} @endif
{{ $booking->talent->name }} @php $talentLevel = $booking->talent->talent_level ?? 'expert'; $talentIcons = ['expert' => '⭐', 'exclusif' => '✨', 'elite' => '👑']; $talentBgClasses = ['expert' => 'info', 'exclusif' => 'warning', 'elite' => 'danger']; @endphp {{ $talentIcons[$talentLevel] ?? '⭐' }} {{ ucfirst($talentLevel) }}
Talent
@endif
@if($booking->status === 'picked_up') Picked Up @else {{ ucfirst($booking->status) }} @endif

Layanan

{{ $booking->service->name }}

{{ $booking->price }} Coin

Tanggal

{{ \Carbon\Carbon::parse($booking->booking_date)->format('d M Y') }}

Jam

{{ $booking->booking_time }}

@endforeach
{{ $bookings->links() }}
@endif
@endsection