2022-12-08 09:30:07 +01:00
|
|
|
{{-- Layout for admins --}}
|
|
|
|
{{-- Will have a sidebar with links --}}
|
|
|
|
{{-- Will have a top bar with account and link to main site--}}
|
2023-01-01 20:13:11 +01:00
|
|
|
@extends('layout')
|
2022-12-08 09:30:07 +01:00
|
|
|
|
|
|
|
@push('head')
|
|
|
|
<link rel="stylesheet" href="{{ asset('css/generic.css') }}">
|
|
|
|
<link rel="stylesheet" href="{{ asset('css/manage.css') }}">
|
|
|
|
@endpush
|
|
|
|
|
|
|
|
@section('body')
|
|
|
|
<header>
|
|
|
|
<a href="{{ route('manage') }}"><span>{{ config('app.name', 'CineFlex') }}</span></a>
|
|
|
|
<div id="links">
|
|
|
|
<a href="{{ route('home') }}">Main Site</a>
|
|
|
|
<a href="{{ route('logout') }}">Logout</a>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<div id="sidebar"> {{-- Page Aware --}}
|
|
|
|
<a class="{{ Request::is('manage') ? 'active' : '' }}" href="{{ route('manage') }}">Dashboard</a>
|
2023-02-02 08:17:38 +01:00
|
|
|
|
|
|
|
@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"))
|
2022-12-08 09:30:07 +01:00
|
|
|
<a class="{{ Request::is('manage/movies') ? 'active' : '' }}" href="{{ route('manage.movies') }}">Movies</a>
|
2023-02-02 08:17:38 +01:00
|
|
|
@endif
|
|
|
|
|
|
|
|
@if (Auth::user()->hasPermission("READ_SHOWINGS"))
|
2023-01-01 20:13:11 +01:00
|
|
|
<a class="child {{ Request::is('manage/showings') ? 'active' : '' }}" href="{{ route('manage.showings') }}">Showings</a>
|
2023-02-02 08:17:38 +01:00
|
|
|
@endif
|
|
|
|
|
|
|
|
@if (Auth::user()->hasPermission("READ_GENRES"))
|
2022-12-08 09:30:07 +01:00
|
|
|
<a class="{{ Request::is('manage/genres') ? 'active' : '' }}" href="{{ route('manage.genres') }}">Genres</a>
|
2023-02-02 08:17:38 +01:00
|
|
|
@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
|
2022-12-08 09:30:07 +01:00
|
|
|
</div>
|
|
|
|
<main>
|
|
|
|
@yield('content')
|
|
|
|
@yield('main')
|
|
|
|
</main>
|
|
|
|
@endsection
|