🧳 {{ $trip->name }}

{{ $trip->group->name }} • {{ $trip->start_date->format('M j') }} - {{ $trip->end_date->format('M j, Y') }}

@if(session('success')) @endif @if(session('error')) @endif

Trip Details

Code: {{ $trip->code }}

{{ $trip->group?->users?->count() ?? 0 }} members

{{ $trip->photos?->count() ?? 0 }} photos

{{ $trip->itineraries?->count() ?? 0 }} events

{{ $trip->locations?->count() ?? 0 }} locations

@if($trip->photos?->count() > 0)
📷

No photos found

Try changing your filter or upload some photos!

@endif

Trip Itinerary

@if($trip->itineraries?->count() > 0)
@foreach($trip->itineraries->sortBy(['date', 'time']) as $event)
@if($event->date) {{ $event->date->format('M j') }} @endif @if($event->time) {{ $event->time->format('g:i A') }} @endif

{{ $event->description }}

Added by {{ $event->creator->name }}

@endforeach
@else
📋

No events planned yet

Add events to create your trip itinerary

@endif

Trip Map & Locations

🗺️

Interactive Map

Map functionality coming soon

Recent Locations

@if($trip->locations?->count() > 0)
@foreach($trip->locations->take(5) as $location)

{{ $location->user->name }}

{{ $location->updated_at->diffForHumans() }}

@if($location->address)

{{ $location->address }}

@endif
📍
@endforeach
@else

No location data yet

@endif

Trip Members

➕ Invite More
@foreach($trip->group->users as $member) @php $memberRole = $member->pivot->role ?? 'member'; $latestLocation = $trip->locations->where('user_id', $member->id)->sortByDesc('updated_at')->first(); @endphp
{{ substr($member->name, 0, 1) }}

{{ $member->name }}

{{ $member->email }}

{{ ucfirst($memberRole) }}
@if($latestLocation)

Last seen {{ $latestLocation->updated_at->diffForHumans() }}

@if($latestLocation->address)

📍 {{ $latestLocation->address }}

@endif
@endif
@endforeach
{{ $trip->group?->users?->count() ?? 0 }}
Total Members
{{ $trip->photos?->groupBy('user_id')?->count() ?? 0 }}
Active Contributors
{{ $trip->group?->users?->where('pivot.role', 'admin')?->count() ?? 0 }}
Admins
{{ $trip->locations?->groupBy('user_id')?->count() ?? 0 }}
Location Sharers

📤 Upload Photos

📷

Click to select photos

or drag and drop files here

Take Photo

This will open your device's camera