@extends('layouts.app') @section('content')

Daftar Booking

@php // Dummy booking data for current user $myBookings = [ [ 'id' => 1, 'artist_name' => 'Sarah Melody', 'artist_avatar' => 'https://picsum.photos/200/200?random=1', 'event_type' => 'Recording Studio', 'datetime' => '2024-01-15 14:00:00', 'duration' => 2, 'total_cost' => 1000000, 'notes' => 'Perlu vocalist untuk recording lagu pop', 'status' => 'pending', 'created_at' => '2024-01-10 10:30:00', 'booking_code' => 'BK-2024-001', ], [ 'id' => 2, 'artist_name' => 'Ahmad Rhythm', 'artist_avatar' => 'https://picsum.photos/200/200?random=2', 'event_type' => 'Live Performance', 'datetime' => '2024-01-18 19:00:00', 'duration' => 3, 'total_cost' => 1350000, 'notes' => 'Acara wedding, perlu 3 lagu', 'status' => 'approved', 'created_at' => '2024-01-08 15:20:00', 'booking_code' => 'BK-2024-002', ], [ 'id' => 3, 'artist_name' => 'Budi Bass', 'artist_avatar' => 'https://picsum.photos/200/200?random=4', 'event_type' => 'Rehearsal', 'datetime' => '2024-01-20 16:00:00', 'duration' => 1, 'total_cost' => 400000, 'notes' => 'Rehearsal untuk acara corporate', 'status' => 'completed', 'created_at' => '2024-01-12 09:15:00', 'booking_code' => 'BK-2024-003', ], [ 'id' => 4, 'artist_name' => 'Diana Voice', 'artist_avatar' => 'https://picsum.photos/200/200?random=5', 'event_type' => 'Collaboration', 'datetime' => '2024-01-22 13:00:00', 'duration' => 4, 'total_cost' => 3000000, 'notes' => 'Kolaborasi untuk project album baru', 'status' => 'rejected', 'created_at' => '2024-01-09 14:45:00', 'booking_code' => 'BK-2024-004', ], [ 'id' => 5, 'artist_name' => 'Rizky Drums', 'artist_avatar' => 'https://picsum.photos/200/200?random=6', 'event_type' => 'Recording Studio', 'datetime' => '2024-01-25 10:00:00', 'duration' => 2, 'total_cost' => 700000, 'notes' => 'Recording untuk single baru', 'status' => 'approved', 'created_at' => '2024-01-11 11:30:00', 'booking_code' => 'BK-2024-005', ], ]; @endphp @foreach ($myBookings as $booking)

{{ $booking['artist_name'] }}

{{ ucfirst(str_replace('_', ' ', $booking['event_type'])) }} {{ \Carbon\Carbon::parse($booking['datetime'])->format('d M Y H:i') }} {{ $booking['duration'] }} jam
{{ $booking['booking_code'] }}
Rp {{ number_format($booking['total_cost']) }}
{{ ucfirst($booking['status']) }}
@if ($booking['notes'])
Catatan:
{{ $booking['notes'] }}
@endif
Booked on: {{ \Carbon\Carbon::parse($booking['created_at'])->format('d M Y H:i') }}
@if ($booking['status'] == 'pending') @elseif($booking['status'] == 'approved') @elseif($booking['status'] == 'completed') @else @endif
@endforeach
@endsection @push('script') @endpush