mega-commit: migrations, controllers, models, etc.
This commit is contained in:
parent
9732135e90
commit
2c6745e812
70 changed files with 2124 additions and 400 deletions
16
resources/views/main/cinemas.blade.php
Normal file
16
resources/views/main/cinemas.blade.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
@extends('main.layout')
|
||||
|
||||
@section('content')
|
||||
<h1>{{ config('app.name', 'CineFlex') }}</h1>
|
||||
<hr/>
|
||||
<h2>Cinemas</h2>
|
||||
<ul>
|
||||
@foreach($cinemas as $cinema)
|
||||
<li>
|
||||
<a href="{{ route('cinema', ['id' => $cinema->id]) }}">
|
||||
{{ $cinema->name }}
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endsection
|
32
resources/views/main/home.blade.php
Normal file
32
resources/views/main/home.blade.php
Normal file
|
@ -0,0 +1,32 @@
|
|||
@extends('main.layout')
|
||||
|
||||
@push('head')
|
||||
<link rel="stylesheet" href="{{ asset('css/extra.css') }}">
|
||||
<script defer src="{{ asset('js/jumbotron.js') }}"></script>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
{{-- data-images is a , seperated list with all images--}}
|
||||
<section id="jumbotron" class="jumbotron" data-delay="5000" data-images="img/bar.jpg,img/cinema.jpg,img/lobby.jpg">
|
||||
<div class="container">
|
||||
<h1 class="display-4">{{ config('app.name', 'CineFlex') }}</h1>
|
||||
<p class="lead">Welcome to CineFlex, the best cinema management system in the world!</p>
|
||||
<p>Here you can see what movies are playing at your local cinema and buy tickets for them.</p>
|
||||
<a class="button" href="{{ route('cinemas') }}" role="button">Cinemas</a>
|
||||
</div>
|
||||
<img class="jumbotron-image" src="" data-order="1">
|
||||
<img class="jumbotron-image" src="" data-order="2">
|
||||
|
||||
</section>
|
||||
|
||||
<h2>Cinemas</h2>
|
||||
<ul>
|
||||
@foreach($cinemas as $cinema)
|
||||
<li>
|
||||
<a href="{{ route('cinema', ['id'=>$cinema->cinema_id]) }}">
|
||||
{{ $cinema->cinema_name }} - {{ $cinema->address->address_city }}
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endsection
|
26
resources/views/main/layout.blade.php
Normal file
26
resources/views/main/layout.blade.php
Normal file
|
@ -0,0 +1,26 @@
|
|||
@extends('layout')
|
||||
|
||||
@push('head')
|
||||
<link rel="stylesheet" href="{{ asset('css/generic.css') }}">
|
||||
<link rel="stylesheet" href="{{ asset('css/main.css') }}">
|
||||
@endpush
|
||||
|
||||
@section('body')
|
||||
<header>
|
||||
<a href="{{ route('home') }}"><span>{{ config('app.name', 'CineFlex') }}</span></a>
|
||||
<div id="links">
|
||||
<a href="{{ route('home') }}">Home</a>
|
||||
<a href="{{ route('movies') }}">Movies</a>
|
||||
|
||||
@if (Auth::check())
|
||||
<a href="{{ route('dash') }}">Dashboard</a>
|
||||
<a href="{{ route('logout') }}">Logout</a>
|
||||
@else
|
||||
<a href="{{ route('login') }}">Login</a>
|
||||
@endif
|
||||
</div>
|
||||
</header>
|
||||
<main>
|
||||
@yield('content')
|
||||
</main>
|
||||
@endsection
|
21
resources/views/main/movies/index.blade.php
Normal file
21
resources/views/main/movies/index.blade.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
@extends('main.layout')
|
||||
|
||||
@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>
|
||||
@endforeach
|
||||
</section>
|
||||
|
||||
@endsection
|
Loading…
Add table
Add a link
Reference in a new issue