cineflex/resources/views/manage/cinemas/index.blade.php

30 lines
967 B
PHP
Raw Normal View History

@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>
</div>
2023-02-02 08:17:38 +01:00
@endif
</div>
<br/>
@endsection