Trip Days

@foreach($itineraries as $itinerary) @endforeach

Collaborative Planning

@foreach($recentCollaborators as $collaborator)
{{ $collaborator['initials'] }}
{{ $collaborator['name'] }} {{ $collaborator['action'] }}
@endforeach
@if($currentItinerary)

Day {{ $currentItinerary->day_number }}: {{ \Carbon\Carbon::parse($currentItinerary->date)->format('M d, Y') }}

Plan your activities for this day
Map View of Activities (Integration with Google Maps would go here)
@foreach(range(1, count($currentItinerary->activities)) as $index)
{{ $index }}
@endforeach
@php $timeSlots = ['morning', 'afternoon', 'evening']; $timeSlotIcons = [ 'morning' => 'coffee', 'afternoon' => 'umbrella', 'evening' => 'moon' ]; $timeSlotColors = [ 'morning' => 'yellow', 'afternoon' => 'orange', 'evening' => 'indigo' ]; @endphp @foreach($timeSlots as $timeSlot)
@if($timeSlot === 'morning') @elseif($timeSlot === 'afternoon') @else @endif

{{ ucfirst($timeSlot) }}

@php $activities = collect($currentItinerary->activities)->filter(function($activity) use ($timeSlot) { $hour = (int) date('H', strtotime($activity['start_time'])); if ($timeSlot === 'morning' && $hour < 12) { return true; } elseif ($timeSlot === 'afternoon' && $hour >= 12 && $hour < 17) { return true; } elseif ($timeSlot === 'evening' && $hour >= 17) { return true; } return false; }); @endphp @if($activities->count() > 0) @foreach($activities as $activity)

{{ $activity['title'] }}

{{ $activity['location'] }}
@if(isset($activity['type']))
{{ $activity['type'] }}
@endif
{{ date('g:i A', strtotime($activity['start_time'])) }} - {{ date('g:i A', strtotime($activity['end_time'])) }}
@if(isset($activity['cost']) && $activity['cost'] > 0)
${{ number_format($activity['cost'], 2) }} / person
@endif
@if(isset($activity['description']) && !empty($activity['description']))

{{ $activity['description'] }}

@endif
SM
MJ
JT
Edit
@endforeach @else

Add {{ ucfirst($timeSlot) }} Activity

@if($timeSlot === 'morning') Explore local attractions, temples, or enjoy breakfast at a nearby cafe @elseif($timeSlot === 'afternoon') Discover beaches, shopping centers, or try local cuisine for lunch @else Experience nightlife, traditional performances, or dinner at a popular restaurant @endif

@endif
@endforeach @else

Select a day to start planning

Choose a day from the list on the left to start adding activities to your itinerary.

@endif