fix+add: seats + seat-chooser
This commit is contained in:
parent
2c6745e812
commit
b0cc5b5278
31 changed files with 808 additions and 115 deletions
34
resources/views/main/cinemas/cinema.blade.php
Normal file
34
resources/views/main/cinemas/cinema.blade.php
Normal file
|
@ -0,0 +1,34 @@
|
|||
@extends('main.layout')
|
||||
|
||||
@section('content')
|
||||
|
||||
<section>
|
||||
<h1>{{$cinema->cinema_name}}</h1>
|
||||
<hr/>
|
||||
<div id="cinema">
|
||||
<div class="details">
|
||||
<span>{{$cinema->address->string()}}</span><br/>
|
||||
<span>{{$cinema->cinema_open}} - {{$cinema->cinema_close}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h1>Now playing:</h1>
|
||||
<hr/>
|
||||
<div id="showings">
|
||||
@foreach($cinema->showings as $showing)
|
||||
<a href="/showing/{{$showing->showing_id}}">
|
||||
<img src="{{$showing->movie->movie_image}}" alt="{{$showing->movie->movie_name}} Poster"
|
||||
width="200px">
|
||||
<div class="details">
|
||||
<span>{{$showing->movie->movie_name}}</span><br/>
|
||||
<span>{{$showing->showing_date}}</span><br/>
|
||||
<span>{{$showing->showing_time}}</span>
|
||||
</div>
|
||||
</a>
|
||||
@endforeach
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@endsection
|
30
resources/views/main/genres/genre.blade.php
Normal file
30
resources/views/main/genres/genre.blade.php
Normal file
|
@ -0,0 +1,30 @@
|
|||
@extends('main.layout')
|
||||
|
||||
@section('content')
|
||||
|
||||
<section>
|
||||
<h1>{{$genre->genre_name}}</h1>
|
||||
<hr/>
|
||||
<div id="genre">
|
||||
<div class="details">
|
||||
<span>{{$genre->genre_description}}</span><br/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h1>Movies:</h1>
|
||||
<hr/>
|
||||
<div id="movies">
|
||||
@foreach($genre->movies as $movie)
|
||||
<a href="/movie/{{$movie->movie_id}}">
|
||||
<img src="{{$movie->movie_image}}" alt="{{$movie->movie_name}} Poster" width="200px">
|
||||
<div class="details">
|
||||
<span>{{$movie->movie_name}}</span><br/>
|
||||
<span>{{$movie->movie_length}} min</span>
|
||||
</div>
|
||||
</a>
|
||||
@endforeach
|
||||
</div>
|
||||
</section>
|
||||
@endsection
|
|
@ -1,20 +1,17 @@
|
|||
@extends('main.layout')
|
||||
|
||||
@push('head')
|
||||
<link rel="stylesheet" href="{{asset('css/movies.css')}}">
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<section>
|
||||
<h1>Now playing:</h1>
|
||||
<hr/>
|
||||
<div id="movies">
|
||||
@foreach($showings as $showing)
|
||||
<a href="/movie/{{$showing->movie->movie_id}}">
|
||||
<img src="{{$showing->movie->movie_image}}" alt="{{$showing->movie->movie_name}} Poster"
|
||||
width="200px">
|
||||
<div class="details">
|
||||
<span>{{$showing->movie->movie_name}}</span><br/>
|
||||
<span>{{$showing->movie->movie_length}} min</span>
|
||||
</div>
|
||||
</a>
|
||||
@foreach($movies as $showing)
|
||||
|
||||
@endforeach
|
||||
</section>
|
||||
|
||||
|
|
37
resources/views/main/showings/showing.blade.php
Normal file
37
resources/views/main/showings/showing.blade.php
Normal file
|
@ -0,0 +1,37 @@
|
|||
@extends('main.layout')
|
||||
|
||||
@section('content')
|
||||
|
||||
<section>
|
||||
<h1><img src="{{$showing->movie->movie_image}}" alt="{{$showing->movie->movie_name}} Poster" width="60px">
|
||||
{{$showing->movie->movie_name}}</h1>
|
||||
<hr/>
|
||||
<div id="showing">
|
||||
<div class="details">
|
||||
<span>Cinema: <a
|
||||
href="/cinema/{{$showing->room->cinema->cinema_id}}">{{$showing->room->cinema->cinema_name}}</a></span><br/>
|
||||
<span>Showing: {{$showing->showing_start}} - {{$showing->end_time()}}</span><br/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h1>Details</h1>
|
||||
<hr/>
|
||||
<span>{{$showing->movie->movie_description}}</span><br/>
|
||||
<hr/>
|
||||
<span>Runtime: {{$showing->movie->movie_length }} minutes</span><br/>
|
||||
<span>Year: {{$showing->movie->movie_year}}</span><br/>
|
||||
<span>Age limit: {{$showing->movie->movie_age_limit}}</span><br/>
|
||||
<span>Genre: <a
|
||||
href="/genre/{{$showing->movie->genre->genre_id}}">{{$showing->movie->genre->genre_name}}</a></span><br/>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h1>Tickets:</h1>
|
||||
<hr/>
|
||||
<span>Tickets available: {{$showing->tickets_available()}}</span><br/>
|
||||
<span>Buy tickets?</span>
|
||||
{{-- todo--}}
|
||||
</section>
|
||||
@endsection
|
Loading…
Add table
Add a link
Reference in a new issue