@extends('layout') @section('content')

{{ __('Dashboard') }}

{{ __('Welcome, again to manage your Events') }}

{{ __('Total Revenue') }}
{{ getTotalRevenue() }}
{{ __('Total bookings') }}
{{ countOrders() ?? __('There are no bookings yet') }}
@if (auth()->user()->type === 'admin')
{{ __('Active Vendors') }}
{{ countActiveVendors() ?? __('There are no active vendors') }}
@endif
{{ __('Active Event') }}
{{ countActiveEvents() ?? __('There are no active events') }}

{{ __('Performance') }}

{{ __('Revenue Distribution') }}

{{ __('Last Activity') }}

@forelse (getLastActivity() as $activity)
{{ __(ucfirst($activity->description)) }}
{{ class_basename($activity->subject_type) }} @if ($activity->subject_id) #{{ $activity->subject_id }} @endif @if ($activity->causer) by {{ $activity->causer->name }} @endif
{{ $activity->created_at->format('h:i A') }} {{ $activity->created_at->diffForHumans() }}
@empty
{{ __('No activity found') }}
@endforelse
{{-- performance chart --}} {{-- pie chart --}} @endsection