{{-- Role Hierarchy --}} @if (!empty($theme)) @else @endif {{ $header_script ?? '' }} @if (Auth::check() && Auth::user()->isImpersonated())
You are viewing as {{ Auth::user()->name }}. Return to my account
@endif
@php $role = auth()->user()->role; @endphp

Welcome back, {{ Auth::user()->name }}

{{ $greeting }}

{{-- {{ dd((session()->has('report_view'))) }} --}} {{-- {{ dd(Auth::user()->isTradesman()) }} --}}
@if ($role == 'visitor')
@elseif(Auth::user()->isTradesman() == true && $role == 'employee')
@endif {{-- {{ dd() }} --}}
  • |
@if ($role == 'employee' && $sessionHomeID) @if (!empty($accesshomes)) @forelse($accesshomes as $accesshome) @if ($accesshome['id'] == $sessionHomeID) {{--

{{ $accesshome['name'] }}

--}} @endif @empty @endforelse @endif @endif
{{--
--}} {{-- {{ dd(session()->get('report_view'),$role) }} --}} {{-- {{ dd($role) }} --}} {{-- sidebar --}}
collapse-icon
@if (!empty($logo) && file_exists(public_path($logo))) @else @endif {{-- @if (env('APP_NAME') == 'QA CRM' || env('APP_NAME') == 'DEV CRM') --}} @if (config('app.env') === 'Staging' || config('app.env') === 'Local')
Staging
@endif