@extends('admin.layout.app') @section('title', 'Dashboard') @section('header')

Home - Dashboard

@endsection @section('content') @php $hasPermission = false; $permissions = [ 'dashboard-uniqueCodesWidget', 'dashboard-participantsWidget', 'dashboard-prizesWidget', 'dashboard-winnersWidget', 'dashboard-uniqueCodesStats', 'dashboard-participantsStats', 'dashboard-participantsChart' ]; foreach ($permissions as $permission) { if (auth()->user()->can($permission)) { $hasPermission = true; break; } } @endphp @if (!$hasPermission)
Access Denied! You currently do not have permission to view any of the dashboard widgets. Please contact the system administrator to request the necessary permissions.
@endif
@can('dashboard-uniqueCodesWidget')

{{ number_format($coupons) }}

Total Unique Codes
{{ number_format($usedCoupons) }} Used / {{ number_format($couponStats['bogusCoupons']) }} Duplicate Entry
@endcan @can('dashboard-participantsWidget')

{{ number_format($participants) }}

Total Participants
{{ number_format($participantStats['invalidParticipants']) }} Duplicate Entry
@endcan @can('dashboard-prizesWidget')

{{ number_format($prizes) }}

Total Prize
{{ number_format($prizeQuantity+$winners)}} Items
@endcan @can('dashboard-winnersWidget')

{{ number_format($winners) }}

Total Winners
{{ number_format($prizeQuantity)}} Remaining Prize
@endcan
@canany(['dashboard-uniqueCodesStats', 'dashboard-participantsStats'])
@can('dashboard-uniqueCodesStats')
Unique Code Overall Stats
Unique Code Validity Stats
@endcan @can('dashboard-participantsStats')
Participants Validity Stats
Gender Wise Participants
@endcan
@endcanany @can('dashboard-participantsChart')
Participants
@endcan @can('dashboard-participantsCityWiseChart')
City Wise Participants
@endcan
@endsection @section('script') @endsection