@php if(Auth::user()->role==1) { $URL= 'superadmin'; } elseif(Auth::user()->role==2) { $URL= 'admin'; }


elseif(Auth::user()->role==3) { $URL= 'staff'; } elseif(Auth::user()->role==4) { $URL= 'client'; }


elseif(Auth::user()->role==5) { $URL= 'manager'; } elseif(Auth::user()->role==6) { $URL= 'supervisor'; }


elseif(Auth::user()->role==7) { $URL= 'hod'; } 


elseif(Auth::user()->role==8) { $URL= 'corporate_training'; }


@endphp


<div class="head-top">


    <div class="head-top-left">


        <a href="{{url($URL)}}"><img src="{{asset('frontend/images/2024/01/logo.png')}}"> </a>


    </div>


    <div class="head-top-right">


        <h1>Welcome {{Auth::user()->name}} @if(Auth::user()->role==1)  <sup>(superadmin)<sup> @elseif(Auth::user()->role==2) <sup>(Admin)</sup>


            @elseif(Auth::user()->role==3) <sup>(staff)</sup> @elseif(Auth::user()->role==4) <sup>(client)</sup> @elseif(Auth::user()->role==5)


            <sup>(manager)</sup> @elseif(Auth::user()->role==6) <sup>(supervisor)</sup> @elseif(Auth::user()->role==7) <sup>(hod)</sup>


            @elseif(Auth::user()->role==8) <sup>(Corporate Trainer)</sup>


            @endif


     


        </h1>


        <p>@if(session()->has('message'))


        <div class="alert alert-success" style="color: green;     font-weight: bold;">


            {{ session()->get('message') }}


        </div>


        @endif</p>


    </div>


</div>