@extends('layouts.app-admin') @section('title', 'Booking Details') @section('content')
@php $statuses = ['Pending', 'Confirmed', 'Completed', 'Cancelled']; $artists = [ 'John Mayer', 'Taylor Swift', 'Ed Sheeran', 'Adele', 'Bruno Mars', 'Ariana Grande', 'Justin Bieber', 'Dua Lipa', 'The Weeknd', 'Billie Eilish', ]; $locations = [ 'Jakarta Convention Center', 'Bali International Convention Centre', 'ICE BSD City', 'Sentul International Convention Center', 'Gelora Bung Karno', 'Ancol Beach City', 'Trans Studio Bandung', 'Candi Borobudur', 'Prambanan Temple', 'Taman Mini Indonesia Indah', ]; $eventTypes = [ 'Music Festival', 'Corporate Event', 'Wedding', 'Birthday Party', 'Charity Concert', 'Product Launch', 'Award Show', 'University Event', 'New Year Celebration', 'Anniversary', ]; // Generate random data for this specific booking $bookingId = 'BK-' . (1000 + (int) $id); $randomDate = \Carbon\Carbon::now()->addDays(rand(1, 60)); $randomStatus = $statuses[array_rand($statuses)]; $randomArtist = $artists[array_rand($artists)]; $randomLocation = $locations[array_rand($locations)]; $randomEvent = $eventTypes[array_rand($eventTypes)] . ' ' . date('Y'); $randomFee = rand(10, 100) * 1000000; $randomDeposit = $randomFee * 0.3; $randomBalance = $randomFee * 0.7; $randomDuration = rand(1, 4); $randomAttendees = rand(100, 5000); $randomOrganizer = 'PT ' . str_replace(' ', '', $randomEvent) . ' Indonesia'; $randomContactPerson = ['John Doe', 'Jane Smith', 'Robert Johnson', 'Emily Davis', 'Michael Brown'][ array_rand(['John Doe', 'Jane Smith', 'Robert Johnson', 'Emily Davis', 'Michael Brown']) ]; $randomContactPhone = '08' . rand(10, 99) . rand(1000, 9999) . rand(1000, 9999); $randomContactEmail = strtolower(str_replace(' ', '.', $randomContactPerson)) . '@example.com'; $statusClass = match ($randomStatus) { 'Pending' => 'bg-yellow', 'Confirmed' => 'bg-blue', 'Completed' => 'bg-green', 'Cancelled' => 'bg-red', default => 'bg-secondary', }; $timeline = [ [ 'date' => \Carbon\Carbon::now()->subDays(rand(5, 15))->format('M d, Y'), 'event' => 'Booking request received', ], [ 'date' => \Carbon\Carbon::now()->subDays(rand(3, 10))->format('M d, Y'), 'event' => 'Initial deposit payment received', ], ]; if ($randomStatus == 'Confirmed' || $randomStatus == 'Completed') { $timeline[] = [ 'date' => \Carbon\Carbon::now()->subDays(rand(1, 5))->format('M d, Y'), 'event' => 'Booking confirmed by artist', ]; $timeline[] = [ 'date' => \Carbon\Carbon::now()->subDays(rand(0, 3))->format('M d, Y'), 'event' => 'Contract signed by both parties', ]; } if ($randomStatus == 'Completed') { $timeline[] = ['date' => $randomDate->format('M d, Y'), 'event' => 'Event completed successfully']; $timeline[] = [ 'date' => $randomDate->addDays(1)->format('M d, Y'), 'event' => 'Final payment received', ]; } if ($randomStatus == 'Cancelled') { $timeline[] = [ 'date' => \Carbon\Carbon::now()->subDays(rand(1, 3))->format('M d, Y'), 'event' => 'Booking cancelled by client', ]; $timeline[] = [ 'date' => \Carbon\Carbon::now()->subDays(rand(0, 1))->format('M d, Y'), 'event' => 'Refund processed (70% of deposit)', ]; } @endphp

Booking Information

Booking ID
{{ $bookingId }}
Status
{{ $randomStatus }}
Artist
{{ $randomArtist }}
Event Name
{{ $randomEvent }}
Event Date
{{ $randomDate->format('d F Y') }}
Event Time
{{ rand(17, 19) }}:00 - {{ rand(21, 23) }}:00
Duration
{{ $randomDuration }} hour(s)
Location
{{ $randomLocation }}
Expected Attendees
{{ number_format($randomAttendees) }} people
Total Fee
Rp {{ number_format($randomFee, 0, ',', '.') }}
Deposit Paid
Rp {{ number_format($randomDeposit, 0, ',', '.') }}
Remaining Balance
Rp {{ number_format($randomBalance, 0, ',', '.') }}
Created At
{{ \Carbon\Carbon::now()->subDays(rand(15, 30))->format('d M Y, H:i') }}
Last Updated
{{ \Carbon\Carbon::now()->subDays(rand(1, 5))->format('d M Y, H:i') }}

Event Organizer Information

Company Name
{{ $randomOrganizer }}
Contact Person
{{ $randomContactPerson }}
Phone Number
{{ $randomContactPhone }}
Email
{{ $randomContactEmail }}

Performance Requirements

Technical Requirements

  • Professional sound system with minimum 10,000 watts
  • Stage size minimum 8x6 meters
  • 4 wireless microphones (Shure SM58 or equivalent)
  • In-ear monitoring system for all band members
  • Lighting system with operator

Hospitality Requirements

  • Private dressing room with refreshments
  • Accommodation for artist and team ({{ rand(3, 8) }} rooms)
  • Transportation from airport/hotel to venue
  • Meals for artist and crew ({{ rand(5, 15) }} people)
  • Security personnel during performance

Actions

@if ($randomStatus == 'Pending') @elseif($randomStatus == 'Confirmed') @elseif($randomStatus == 'Completed') @else @endif Edit Details

Timeline

    @foreach ($timeline as $item)
  • {{ $item['date'] }}

    {{ $item['event'] }}

  • @endforeach

Notes

JD
John Doe {{ \Carbon\Carbon::now()->subDays(rand(1, 3))->format('M d, Y') }}

Client requested a specific song list. Shared with the artist via email.

AS
Admin System {{ \Carbon\Carbon::now()->subDays(rand(4, 7))->format('M d, Y') }}

Booking created and initial confirmation email sent to organizer.

@endsection