@if(Auth::User()->role == "admin")
@if($gsetting->sidebar_enable == 1)
@include('admin.layouts.new_sidebar')
@else
@include('admin.layouts.sidebar')
@endif
@endif
@if(Auth::User()->role == "instructor")
@if($gsetting->instructor_sidebar == 1)
@include('admin.layouts.instructor_sidebar')
@else
@include('instructor.layouts.sidebar')
@endif
@endif
@yield('maincontent')
@include('admin.layouts.scripts')
@yield('scripts')