2022-12-08 09:30:07 +01:00
|
|
|
@extends('manage.layout')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<h1>Cinemas</h1>
|
|
|
|
<hr/><br/>
|
2023-02-02 08:17:38 +01:00
|
|
|
<h2>Cinemas ({{ count(Auth::user()->cinemas()) }} / {{ $cinemas->count() }})</h2>
|
|
|
|
<div>
|
|
|
|
@if (count(Auth::user()->cinemas()) > 0)
|
|
|
|
<ul>
|
|
|
|
@foreach(Auth::user()->cinemas() as $cinema)
|
|
|
|
<li>
|
|
|
|
<a href="{{ route('manage.cinema', ['id' => $cinema->cinema_id]) }}">
|
|
|
|
<div>
|
|
|
|
<h3>{{ $cinema->cinema_name }}</h3>
|
|
|
|
<span class="big-stat">{{ $cinema->address->address_city }}</span>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
@else
|
|
|
|
<div class="warning">
|
|
|
|
<h3>No Cinemas</h3>
|
|
|
|
<span>Did you have permission?</span>
|
2022-12-08 09:30:07 +01:00
|
|
|
</div>
|
2023-02-02 08:17:38 +01:00
|
|
|
@endif
|
2022-12-08 09:30:07 +01:00
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
@endsection
|