@extends('layouts.app') @section('content')
12
Total Booking
3
Pending
8
Approved
Rp 4.2M
Total Pendapatan

Request Booking

@php // Dummy booking data $bookings = [ [ 'id' => 1, 'user_name' => 'John Doe', 'user_avatar' => 'https://picsum.photos/200/200?random=10', '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', ], [ 'id' => 2, 'user_name' => 'Jane Smith', 'user_avatar' => 'https://picsum.photos/200/200?random=11', 'event_type' => 'Live Performance', 'datetime' => '2024-01-18 19:00:00', 'duration' => 3, 'total_cost' => 1500000, 'notes' => 'Acara wedding, perlu 3 lagu', 'status' => 'approved', 'created_at' => '2024-01-08 15:20:00', ], [ 'id' => 3, 'user_name' => 'Mike Johnson', 'user_avatar' => 'https://picsum.photos/200/200?random=12', 'event_type' => 'Rehearsal', 'datetime' => '2024-01-20 16:00:00', 'duration' => 1, 'total_cost' => 500000, 'notes' => 'Rehearsal untuk acara corporate', 'status' => 'pending', 'created_at' => '2024-01-12 09:15:00', ], [ 'id' => 4, 'user_name' => 'Lisa Brown', 'user_avatar' => 'https://picsum.photos/200/200?random=13', 'event_type' => 'Collaboration', 'datetime' => '2024-01-22 13:00:00', 'duration' => 4, 'total_cost' => 2000000, 'notes' => 'Kolaborasi untuk project album baru', 'status' => 'rejected', 'created_at' => '2024-01-09 14:45:00', ], [ 'id' => 5, 'user_name' => 'David Wilson', 'user_avatar' => 'https://picsum.photos/200/200?random=14', 'event_type' => 'Recording Studio', 'datetime' => '2024-01-25 10:00:00', 'duration' => 2, 'total_cost' => 1000000, 'notes' => 'Recording untuk single baru', 'status' => 'approved', 'created_at' => '2024-01-11 11:30:00', ], ]; @endphp @foreach ($bookings as $booking)
{{ $booking['user_name'] }}
{{ \Carbon\Carbon::parse($booking['datetime'])->format('d M Y H:i') }} {{ $booking['duration'] }} jam {{ ucfirst(str_replace('_', ' ', $booking['event_type'])) }}
Rp {{ number_format($booking['total_cost']) }}
{{ ucfirst($booking['status']) }}
@if ($booking['notes'])
Catatan:
{{ $booking['notes'] }}
@endif
Requested: {{ \Carbon\Carbon::parse($booking['created_at'])->format('d M Y H:i') }}
@if ($booking['status'] == 'pending')
@elseif($booking['status'] == 'approved')
Booking confirmed
@else
Booking rejected
@endif
@endforeach

Pengaturan Ketersediaan

Rp
@endsection @push('script') @endpush