@extends('_layout')
@section('title', sysConfig('website_name'))
@section('layout_css')
@yield('css')
@endsection
@section('body_class', 'dashboard')
@section('layout_content')
@php
$apply_count = auth()->user()->can('admin.aff.index')
? Cache::rememberForever('open_referral_apply_count', static function () {
return App\Models\ReferralApply::whereStatus(0)->count();
})
: null;
$ticket_count = auth()->user()->can('admin.ticket.index')
? Cache::rememberForever('open_ticket_count', static function () {
return App\Models\Ticket::whereStatus(0)->count();
})
: null;
$env = config('app.env') === 'local' && config('app.debug');
@endphp