@extends('layouts.main') @section('title') {{ __('dashboard.title') }} @endsection @section('page_title') {{ __('dashboard.title') }} @endsection @php $breadcrumbs = [ ['url' => '', 'label' => __('dashboard.title')], ]; @endphp @section('content')

{{ __('dashboard.welcome', ['name' => Auth::user()->name]) }} 👋

{{ __('dashboard.welcome_message') }}

{{ __('dashboard.system_online') }}

{{ $eventCount ?? 0 }}

{{ __('dashboard.total_events') }}

{{--
+{{ $eventsThisMonth ?? 0 }} this month
--}}

{{ $campaignCount ?? 0 }}

{{ __('dashboard.total_campaigns') }}

{{--
+{{ $campaignsThisMonth ?? 0 }} this month
--}}

{{ $invitationCount ?? 0 }}

{{ __('dashboard.total_invitations') }}

{{--
+{{ $invitationsThisMonth ?? 0 }} this month
--}}

{{ $connectedDevices ?? 0 }}

{{ __('dashboard.connected_devices') }}

{{--
{{ $disconnectedDevices ?? 0 }} disconnected
--}}

{{ __('dashboard.monthly_analytics') }}

{{ __('dashboard.track_performance') }}

{{ __('dashboard.invitation_status') }}

{{ __('dashboard.delivery_statistics') }}

{{ __('dashboard.in_progress') }} {{ $sentInvitations ?? 0 }}
{{ __('dashboard.delivered') }} {{ $deliveredInvitations ?? 0 }}
{{ __('dashboard.failed') }} {{ $failedInvitations ?? 0 }}
{{ __('dashboard.success_rate') }} {{ $invitationCount > 0 ? round(($deliveredInvitations / $invitationCount) * 100, 1) : 0 }}%

{{ __('dashboard.recent_events') }}

{{ __('dashboard.recent_activities') }}

{{ __('dashboard.view_all') }}
@forelse($recentEvents ?? [] as $event)

{{ $event->name }}

{{ $event->formatted_created_date }}

{{ $event->device_connected ? __('dashboard.connected') : __('dashboard.disconnected') }}
@empty

{{ __('dashboard.no_events_found') }}

{{ __('dashboard.no_events_message') }}

{{ __('dashboard.create_event') }}
@endforelse

{{ __('dashboard.recent_campaigns') }}

{{ __('dashboard.campaign_activities') }}

{{ __('dashboard.view_all') }}
@forelse($recentCampaigns ?? [] as $campaign)

{{ $campaign->name }}

{{ $campaign->formatted_created_date }}

{{ __('dashboard.event') }}: {{ $campaign->event->name ?? 'N/A' }}

{{ $campaign->invitations_count ?? 0 }} {{ __('dashboard.invitations') }}
@empty

{{ __('dashboard.no_campaigns_found') }}

{{ __('dashboard.no_campaigns_message') }}

{{ __('dashboard.create_campaign') }}
@endforelse

{{ __('dashboard.quick_actions') }}

{{ __('dashboard.common_tasks') }}

@endsection @push('custom_scripts') @endpush