@vite(['resources/css/app.css', 'resources/js/app.js'])
ADMIN
@php $user = Auth::user(); $otheruser = $user->otheruser; $sidepanel_access = $otheruser ? json_decode($otheruser->sidepanel_access, true) : []; @endphp @if(!$otheruser || in_array('dashboard', $sidepanel_access))
Dashboard
@endif @if(!$otheruser || in_array('applicants', $sidepanel_access))
Applicants
@endif @if(!$otheruser || in_array('careers', $sidepanel_access))
Careers
@endif @if(!$otheruser || in_array('contact_us', $sidepanel_access))
Contacted Us
@endif @if(!$otheruser || in_array('newsletter', $sidepanel_access))
Newsletter
@endif @if(!$otheruser || in_array('blogs', $sidepanel_access))
Blogs
@endif {{-- revision services --}} @if(!$otheruser || in_array('services', $sidepanel_access))
Services
@endif @if(!$otheruser || in_array('otheruser', $sidepanel_access))
User
@endif
{{ Auth::user()->name }}
@csrf
Log Out
{{-- @php if(Auth::check()) { $user = Auth::user(); $otheruser = $user->otheruser; dump([ 'user_id' => Auth::id(), 'has_otheruser' => $otheruser ? 'yes' : 'no', 'otheruser_data' => $otheruser, 'role_name' => $otheruser ? $otheruser->role_name : 'none' ]); } @endphp --}} {{ $slot }}
@yield('js')