@php $role = Auth::user()->roles[0]->name; if ($role == 'Company' || $role == 'Musteri') { $rolePath = 'company.index'; } if ($role == 'Branch') { $rolePath = 'branch.index'; } if ($role == 'Operasyon') { $rolePath = 'operation.index'; } if ($role == 'Hr') { if (count(auth()->user()->permissions) > 1) { if (!auth()->user()->can('ik_bordro')) { $rolePath = 'hummanresource.index'; } else { $rolePath = 'hummanresource.firstPage'; } } else { if (auth()->user()->can('ik_ise_alim')) { $rolePath = 'hummanresource.index'; } elseif (auth()->user()->can('ik_bordro')) { $rolePath = 'hummanresource.index2'; } elseif (auth()->user()->can('call_support')) { $rolePath = 'hummanresource.index3'; } } } if ($role == 'Muhasebe') { $rolePath = 'accounting.index'; } if ($role == 'Randevu') { $rolePath = 'randevu.pageIndex'; } if ($role == 'Sales_marketing') { $rolePath = 'salesMarketing.index'; } if ($role == 'Root') { $rolePath = 'root.index'; } if ($role == 'department') { $rolePath = 'department.index'; } if ($role == 'isg') { $rolePath = 'isg.index'; } if (Auth::user()->roles[0]->permission == 'workers') { $rolePath = 'user.home'; } @endphp
extrasistem logo @if (isset($bannersData) && count($bannersData) > 0) @endif @if (env('APP_TYPE') == 'dev') @endif
@if (Auth::user()->roles[0]->name == 'Branch') @elseif (Auth::user()->roles[0]->name == 'Company') @elseif(Auth::user()->roles[0]->name == 'department') @elseif (Auth::user()->profile_img) @else @endif