@if (Auth::user()->role == 'admin')
More info
More info
@else
{{ \App\License::where('status', '1')->where('end_at', '>=', now())->count() }}
Active Licenses
{{ \App\License::where('end_at', '<=', now()->addDays(7))->where('end_at', '>', now())->count() }}
Expiring Licenses in 7 Days
@php
$reseller_id = App\Models\Reseller::firstWhere('user_id', Auth::id())->id;
@endphp
{{ \App\License::where('reseller_id', $reseller_id)->where('status', '1')->where('end_at', '>=', now())->count() }}
Active Licenses
{{ \App\License::where('reseller_id', $reseller_id)->where('end_at', '<=', now()->addDays(7))->where('end_at', '>', now())->count() }}
Expiring Licenses in 7 Days
{{ \App\License::where('reseller_id', $reseller_id)->where('end_at', '<', now())->count() }}
Expired Licenses
License Purchase Graph @php echo date("Y") @endphp
Notice
@foreach($notices->take(2) as $notice)
@endforeach
@if ($notices->count() > 2)
View all
@endif
{{ $notice->title }}
{{ $notice->content }}
Posted on: {{ $notice->created_at->format('F d, Y H:i A') }}