{{-- resources/views/livewire/pages/dashboard.blade.php --}} @extends('layouts.dashboard') @section('title', 'Dashboard - PangoQ') @section('content')

Welcome back, {{ Auth::user()->name ?? 'User' }}!

Here's what's happening with your trips today.

Plan New Trip

Total Savings

${{ number_format($wallet['balance'] ?? 0, 2) }}

{{ $wallet['monthly_growth_percentage'] ?? 0 }}% vs last month

Active Trips

{{ $stats['trips_planned'] ?? 0 }}

{{ $stats['trips_upcoming'] ?? 0 }} upcoming

Travel Buddies

{{ $stats['friends_onboarded'] ?? 0 }}

Invite more

Goal Progress

{{ $wallet['progress_percentage'] ?? 0 }}%

${{ number_format(($wallet['target_amount'] ?? 0) - ($wallet['balance'] ?? 0), 0) }} to go
@if(isset($upcomingTrips) && count($upcomingTrips) > 0 && $upcomingTrips->first()->id > 0)

Next Adventure

{{ $upcomingTrips->first()->progress ?? 0 }}% Funded

{{ $upcomingTrips->first()->title }}

{{ $upcomingTrips->first()->destination }}
{{ $upcomingTrips->first()->start_date->format('M j') }} - {{ $upcomingTrips->first()->end_date->format('M j, Y') }}
{{ $upcomingTrips->first()->trip_composition }} @if($upcomingTrips->first()->invited_members > 0) +{{ $upcomingTrips->first()->invited_members }} invited @endif
Funding Progress ${{ number_format($upcomingTrips->first()->funded, 0) }} / ${{ number_format($upcomingTrips->first()->target, 0) }}
@if($upcomingTrips->first()->adults_count > 0 || $upcomingTrips->first()->children_count > 0)
@if($upcomingTrips->first()->adults_count > 0) {{ $upcomingTrips->first()->adults_count }} adult{{ $upcomingTrips->first()->adults_count !== 1 ? 's' : '' }} @endif @if($upcomingTrips->first()->children_count > 0) {{ $upcomingTrips->first()->children_count }} child{{ $upcomingTrips->first()->children_count !== 1 ? 'ren' : '' }} @endif
@if($upcomingTrips->first()->invited_members > 0) {{ $upcomingTrips->first()->invited_members }} planning helper{{ $upcomingTrips->first()->invited_members !== 1 ? 's' : '' }} @endif
@endif
@if(isset($tripMembers) && count($tripMembers) > 0)

Trip Planning Team

People you've invited to help plan your trips

{{ count($tripMembers) }} invited
@foreach($tripMembers->take(5) as $member)
@if($member->has_user_account) @else @endif

{{ $member->name }}

Planning Helper

{{ $member->email }}

{{ $member->trip_title }}

{{ ucfirst($member->status) }} {{ $member->invited_at->diffForHumans() }}
@endforeach
@if(count($tripMembers) > 5) @endif

Planning Helpers vs Travelers

These are people you've invited to help plan your trips. The actual travelers ({{ $upcomingTrips->first()->travelers ?? 0 }} people) are shown in your trip details.

@endif
Trip destination
@else

Ready for your next adventure?

Start planning your dream trip and invite friends to join you!

Plan Your First Trip
@endif @if(isset($tripMembers) && count($tripMembers) > 0)

Invited Trip Members

{{ count($tripMembers) }}
@foreach($tripMembers->take(5) as $member)
@if($member->has_user_account) @else @endif

{{ $member->name }}

{{ $member->email }}

{{ $member->trip_title }}

{{ ucfirst($member->status) }} {{ $member->invited_at->diffForHumans() }}
@endforeach
@if(count($tripMembers) > 5) @endif
@endif @if(isset($recentActivities) && count($recentActivities) > 0)

Recent Activity

View all
    @foreach($recentActivities as $index => $activity)
  • @if($index !== count($recentActivities) - 1) @endif
    @if($activity->type ?? '' === 'contribution') @elseif($activity->type ?? '' === 'friend_joined') @else @endif
    @if($activity->type ?? '' === 'contribution') You contributed ${{ number_format($activity->amount ?? 0, 2) }} @elseif($activity->type ?? '' === 'friend_joined') {{ $activity->user ?? 'User' }} joined your trip @else Itinerary updated for {{ $activity->trip ?? 'Trip' }} @endif

    {{ $activity->date->diffForHumans() }} • {{ $activity->trip ?? 'Trip' }}

    @if($activity->type ?? '' === 'contribution')

    Trip funding updated!

    @elseif($activity->type ?? '' === 'friend_joined')

    New member joined

    @else

    Trip details updated

    @endif
  • @endforeach
@endif @if(isset($upcomingTrips) && count($upcomingTrips) > 1)

All Your Trips

View all
@foreach($upcomingTrips->slice(1, 4) as $trip)

{{ $trip->title }}

{{ $trip->destination }}

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

{{ $trip->progress }}%
@endforeach
@endif

Savings Wallet

Current Balance

${{ number_format($wallet['balance'] ?? 0, 2) }}

of ${{ number_format($wallet['target_amount'] ?? 0, 2) }} goal

Progress {{ $wallet['progress_percentage'] ?? 0 }}%
@if(isset($wallet['recent_transactions']) && count($wallet['recent_transactions']) > 0)

Recent Transactions

@foreach($wallet['recent_transactions'] as $transaction)

{{ $transaction->type ?? 'Transaction' }}

{{ $transaction->created_at->diffForHumans() }}

{{ $transaction->amount >= 0 ? '+' : '' }}${{ number_format(abs($transaction->amount), 2) }}
@endforeach
@endif

Quick Actions

@if(isset($invitations) && count($invitations) > 0)

Trip Invitations

{{ count($invitations) }}
@foreach($invitations as $invitation)

{{ $invitation->title }}

Invited by {{ $invitation->invited_by }}

Expires {{ $invitation->expires_at->format('M j, Y') }}

@csrf
@csrf
@endforeach
@endif

💡 Travel Tip

Book flights 6-8 weeks in advance for domestic trips and 2-8 months for international travel to get the best deals!

Learn more travel tips →

Need Help?

Our support team is here to help you plan the perfect trip.

Contact Support
@endsection