{{-- resources/views/livewire/trips/invite-friends.blade.php --}}

Who's joining your {{ $destination }} adventure?

Invite friends and family to collaborate on your trip planning

{{ $tripTitle ?? 'Summer Getaway 2029' }} {{ $destination }} {{ isset($startDate) && isset($endDate) ? \Carbon\Carbon::parse($startDate)->format('M d') . ' - ' . \Carbon\Carbon::parse($endDate)->format('M d, Y') : 'Aug 15 - Aug 22, 2023' }}
{{ 1 }} organizer{{ count($inviteEmails) > 0 ? ' + ' . count($inviteEmails) . ' invited' : '' }}

Share invite link

Anyone with this link can join. Expires in 7 days.

Invite Directly

@error('friendName')

{{ $message }}

@enderror
@error('friendContact')

{{ $message }}

@enderror

Invite Multiple People

Add multiple emails separated by commas

Trip Members

Organizer
You have full trip control
{{ isset(auth()->user()->name) ? substr(auth()->user()->name, 0, 1) : 'Y' }}
{{ auth()->user()->name ?? 'You' }} (You)
{{ auth()->user()->email ?? 'your.email@example.com' }}
Active
Travelers
@if(count($inviteEmails) > 0) {{ count($inviteEmails) }} invited @else 0 of {{ max(1, $travelers - 1) }} confirmed @endif
@if(isset($inviteEmails) && count($inviteEmails) > 0) @foreach($inviteEmails as $index => $invite)
{{ substr($invite['name'] ?? $invite['email'], 0, 1) }}
{{ $invite['name'] ?? $invite['email'] }}
Invited just now
Pending
@endforeach @endif @php $emptySlots = ($travelers ?? 3) - (isset($inviteEmails) ? count($inviteEmails) : 0); $emptySlots = max(0, $emptySlots); @endphp @for($i = 0; $i < $emptySlots; $i++)
Empty slot
One more traveler needed
@endfor

Why invite friends now?

  • Collaborative planning makes for better trips
  • Friends can suggest activities and contribute ideas
  • Track who's confirmed to better plan accommodations
@include('components.trip-storage-helper')