megacommit
This commit is contained in:
parent
2451ab45cb
commit
34ed81516b
51 changed files with 1200 additions and 251 deletions
|
@ -18,12 +18,26 @@
|
|||
</header>
|
||||
<div id="sidebar"> {{-- Page Aware --}}
|
||||
<a class="{{ Request::is('manage') ? 'active' : '' }}" href="{{ route('manage') }}">Dashboard</a>
|
||||
{{-- manage cinemas--}}
|
||||
{{-- <a class="{{ Request::is('manage/cinemas') ? 'active' : '' }}" href="{{ route('manage.cinemas') }}">Cinemas</a>--}}
|
||||
{{-- <a class="{{ Request::is('manage/cinemas/employees') ? 'active' : '' }} child" href="{{ route('manage.cinemas.employees') }}">Employees</a>--}}
|
||||
|
||||
@if (Auth::user()->hasPermission("READ_CINEMAS"))
|
||||
<a class="{{ Request::is('manage/cinemas') ? 'active' : '' }}" href="{{ route('manage.cinemas') }}">Cinemas</a>
|
||||
@endif
|
||||
|
||||
@if (Auth::user()->hasPermission("READ_MOVIES"))
|
||||
<a class="{{ Request::is('manage/movies') ? 'active' : '' }}" href="{{ route('manage.movies') }}">Movies</a>
|
||||
@endif
|
||||
|
||||
@if (Auth::user()->hasPermission("READ_SHOWINGS"))
|
||||
<a class="child {{ Request::is('manage/showings') ? 'active' : '' }}" href="{{ route('manage.showings') }}">Showings</a>
|
||||
@endif
|
||||
|
||||
@if (Auth::user()->hasPermission("READ_GENRES"))
|
||||
<a class="{{ Request::is('manage/genres') ? 'active' : '' }}" href="{{ route('manage.genres') }}">Genres</a>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->atleast('manage') && Auth::user()->hasPermission("READ_USERS"))
|
||||
<a class="{{ Request::is('manage/users') ? 'active' : '' }}" href="{{ route('manage.users') }}">Users</a>
|
||||
@endif
|
||||
</div>
|
||||
<main>
|
||||
@yield('content')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue