{{ __('Dashboard') }}
@php
$adminAccess = [];
if(auth()->check() && auth()->user()->hasRole('Admin')) {
$adminAccess = \App\Models\AccessSetting::where('user_id', auth()->id())->pluck('allowed', 'menu_key')->toArray();
}
@endphp
@hasrole('Admin')
@if(($adminAccess['leads'] ?? true))
{{ __('Leads') }}
@endif
@if(($adminAccess['customers'] ?? true))
{{ __('Customers') }}
@endif
@if(($adminAccess['tasks'] ?? true))
{{ __('Tasks') }}
@endif
@if(($adminAccess['pipeline-stages'] ?? true))
{{ __('Pipeline Stages') }}
@endif
@if(($adminAccess['activities'] ?? true))
{{ __('Activities') }}
@endif
@if(($adminAccess['notes'] ?? true))
{{ __('Notes') }}
@endif
@if(($adminAccess['follow-ups'] ?? true))
{{ __('Follow-ups') }}
@endif
{{ __('Users') }}
@endhasrole
{{ Auth::user()->name }}
{{ Auth::user()->email }}
{{ __('Profile') }}
@php
$adminAccess = [];
if(auth()->check() && auth()->user()->hasRole('Admin')) {
$adminAccess = \App\Models\AccessSetting::where('user_id', auth()->id())->pluck('allowed', 'menu_key')->toArray();
}
@endphp
@hasrole('Admin')
@if(($adminAccess['settings'] ?? true))
{{ __('Settings') }}
@endif
@if(($adminAccess['access-settings'] ?? true))
{{ __('Access Settings') }}
@endif
@endhasrole