fix: working copy, caching ASP, notworking orders though
This commit is contained in:
		
							parent
							
								
									dc5d204cfc
								
							
						
					
					
						commit
						390ad23e03
					
				
					 32 changed files with 246 additions and 194 deletions
				
			
		| 
						 | 
				
			
			@ -8,7 +8,7 @@
 | 
			
		|||
    <h2>{{ __('Login') }}</h2>
 | 
			
		||||
 | 
			
		||||
    <div class="form">
 | 
			
		||||
        <form method="POST" action="{{ route('login') }}">
 | 
			
		||||
        <form method="POST" action="{{ route('login', ['redirect' => request()->get('redirect')]) }}">
 | 
			
		||||
            @csrf
 | 
			
		||||
            <div class="item">
 | 
			
		||||
                <label for="email">{{ __('E-Mail Address') }}</label><br/>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										12
									
								
								resources/views/components/movie-cards.blade.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								resources/views/components/movie-cards.blade.php
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,12 @@
 | 
			
		|||
<div id="movie-grid">
 | 
			
		||||
    @foreach($movies as $movie)
 | 
			
		||||
        <a class="movie" href="{{route('movie', ['id' => $movie->movie_id])}}">
 | 
			
		||||
            <x-cache-image src="{{$movie->movie_image}}" alt="{{$movie->movie_name}} Poster" class="poster" width="200px"/>
 | 
			
		||||
            <div class="details">
 | 
			
		||||
                <h2>{{ $movie->movie_name }}</h2>
 | 
			
		||||
                <span>{{ Str::limit($movie->movie_description, 150) }}</span>
 | 
			
		||||
                <p>{{ $movie->movie_length }} minutes</p>
 | 
			
		||||
            </div>
 | 
			
		||||
        </a>
 | 
			
		||||
    @endforeach
 | 
			
		||||
</div>
 | 
			
		||||
							
								
								
									
										17
									
								
								resources/views/components/movie-list.blade.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								resources/views/components/movie-list.blade.php
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,17 @@
 | 
			
		|||
@push('head')
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('css/manage/movies.css') }}">
 | 
			
		||||
@endpush
 | 
			
		||||
 | 
			
		||||
<div id="movie-list">
 | 
			
		||||
    @foreach($movies as $movie)
 | 
			
		||||
        <a href="/manage/movie/{{$movie->movie_id}}">
 | 
			
		||||
            <x-cache-image src="{{$movie->movie_image}}" alt="{{$movie->movie_name}} Poster" class="poster" width="200px"/>
 | 
			
		||||
            <div class="details">
 | 
			
		||||
                <h3>{{$movie->movie_name}}</h3><br/>
 | 
			
		||||
                <span>{{ Str::limit($movie->movie_description, 500) }}</span><br/>
 | 
			
		||||
                <hr/>
 | 
			
		||||
                <span>{{$movie->movie_length}} min | {{$movie->movie_year}}</span>
 | 
			
		||||
            </div>
 | 
			
		||||
        </a>
 | 
			
		||||
    @endforeach
 | 
			
		||||
</div>
 | 
			
		||||
| 
						 | 
				
			
			@ -1,33 +0,0 @@
 | 
			
		|||
@extends('layout')
 | 
			
		||||
 | 
			
		||||
@push('head')
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('css/seat-chooser.css') }}">
 | 
			
		||||
    <script src="{{ asset('js/seat-chooser.js') }}" defer></script>
 | 
			
		||||
@endpush
 | 
			
		||||
 | 
			
		||||
<div id="load-screen">
 | 
			
		||||
    <div id="loading">
 | 
			
		||||
        <div class="spinner"></div>
 | 
			
		||||
        <div class="loading-text">Loading...</div>
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="seat-chooser">
 | 
			
		||||
    @foreach($seatmatrix as $row)
 | 
			
		||||
        <div class="row">
 | 
			
		||||
            @foreach($row as $seat)
 | 
			
		||||
                @if($seat)
 | 
			
		||||
                    <div class="seat @if($seat->isReserved($showing_id)) reserved @endif"
 | 
			
		||||
                         data-seat-id="{{ $seat->seat_id }}"
 | 
			
		||||
                         data-seat-status="{{ $seat->seat_status }}"
 | 
			
		||||
                         data-seat-row="{{ $seat->seat_row }}"
 | 
			
		||||
                         data-seat-column="{{ $seat->seat_column }}">
 | 
			
		||||
                        <div class="seat-number">{{ $seat->seat_row }}-{{ $seat->seat_column }}</div>
 | 
			
		||||
                    </div>
 | 
			
		||||
                @else
 | 
			
		||||
                    <div class="no-seat"></div>
 | 
			
		||||
                @endif
 | 
			
		||||
            @endforeach
 | 
			
		||||
        </div>
 | 
			
		||||
    @endforeach
 | 
			
		||||
</div>
 | 
			
		||||
| 
						 | 
				
			
			@ -7,7 +7,6 @@
 | 
			
		|||
@endpush
 | 
			
		||||
 | 
			
		||||
<div>
 | 
			
		||||
 | 
			
		||||
    <div id="seat-chooser" data-showing-id="{{ $showing_id }}">
 | 
			
		||||
        <div id="seat-chooser-status">
 | 
			
		||||
            <h2>Loading...</h2>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,7 +16,7 @@
 | 
			
		|||
 | 
			
		||||
    <h2>Orders</h2>
 | 
			
		||||
    <hr/>
 | 
			
		||||
    <x-orders :orders="Auth()->user()->orders" />
 | 
			
		||||
    <x-orders :orders="Auth()->user()->orders"/>
 | 
			
		||||
 | 
			
		||||
    <h2>Permissions</h2>
 | 
			
		||||
    <hr/>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
@extends('main.layout')
 | 
			
		||||
 | 
			
		||||
@push('head')
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('css/extra.css') }}">
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('css/main/jumbotron.css') }}">
 | 
			
		||||
    <script defer src="{{ asset('js/jumbotron.js') }}"></script>
 | 
			
		||||
@endpush
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,7 +2,7 @@
 | 
			
		|||
 | 
			
		||||
@push('head')
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('css/generic.css') }}">
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('css/main.css') }}">
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('css/main/main.css') }}">
 | 
			
		||||
@endpush
 | 
			
		||||
 | 
			
		||||
@section('body')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
@extends('main.layout')
 | 
			
		||||
 | 
			
		||||
@push('head')
 | 
			
		||||
    <link rel="stylesheet" href="{{asset('css/movies.css')}}">
 | 
			
		||||
    <link rel="stylesheet" href="{{asset('css/main/movies.css')}}">
 | 
			
		||||
@endpush
 | 
			
		||||
 | 
			
		||||
@section('content')
 | 
			
		||||
| 
						 | 
				
			
			@ -9,17 +9,7 @@
 | 
			
		|||
    <section>
 | 
			
		||||
        <h1>Now playing:</h1>
 | 
			
		||||
        <hr/>
 | 
			
		||||
        <div id="movies">
 | 
			
		||||
            @foreach($movies as $movie)
 | 
			
		||||
                <a class="movie" href="{{route('movie', ['id' => $movie->movie_id])}}">
 | 
			
		||||
                    <x-cache-image src="{{$movie->movie_image}}" alt="{{$movie->movie_name}} Poster" class="poster" width="200px"/>
 | 
			
		||||
                    <div class="details">
 | 
			
		||||
                        <h2>{{ $movie->movie_name }}</h2>
 | 
			
		||||
                        <span>{{ $movie->movie_description }}</span>
 | 
			
		||||
                        <p>{{ $movie->movie_length }} minutes</p>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </a>
 | 
			
		||||
            @endforeach
 | 
			
		||||
        <x-movie-cards :movies="$movies"/>
 | 
			
		||||
    </section>
 | 
			
		||||
 | 
			
		||||
@endsection
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -30,6 +30,5 @@
 | 
			
		|||
        <hr/>
 | 
			
		||||
        <div id="summary-total">Total: €0.00</div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <button id="order-button" class="button" disabled=true>Order</button>
 | 
			
		||||
 | 
			
		||||
    <button id="order-button" class="button" disabled="true" data-token="{{ Auth::user()->createToken('order-token', ['*'], now()->addMinutes(15))->plainTextToken }}">Order</button>
 | 
			
		||||
@endsection
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,7 +5,7 @@
 | 
			
		|||
 | 
			
		||||
@push('head')
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('css/generic.css') }}">
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('css/manage.css') }}">
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('css/manage/manage.css') }}">
 | 
			
		||||
@endpush
 | 
			
		||||
 | 
			
		||||
@section('body')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,17 +8,5 @@
 | 
			
		|||
        <a href="{{ route('manage.movies.create') }}" class="button" style="height: 2rem; margin: 0.5rem 0;">Add Movie</a>
 | 
			
		||||
    </div>
 | 
			
		||||
    <hr/><br/>
 | 
			
		||||
    <div id="movies">
 | 
			
		||||
        @foreach($movies as $movie)
 | 
			
		||||
            <a href="/manage/movie/{{$movie->movie_id}}">
 | 
			
		||||
                <x-cache-image src="{{$movie->movie_image}}" alt="{{$movie->movie_name}} Poster" class="poster" width="200px"/>
 | 
			
		||||
                <div class="details">
 | 
			
		||||
                    <h3>{{$movie->movie_name}}</h3><br/>
 | 
			
		||||
                    <span>{{ Str::limit($movie->movie_description, 500) }}</span><br/>
 | 
			
		||||
                    <hr/>
 | 
			
		||||
                    <span>{{$movie->movie_length}} min | {{$movie->movie_year}}</span>
 | 
			
		||||
                </div>
 | 
			
		||||
            </a>
 | 
			
		||||
        @endforeach
 | 
			
		||||
    </div>
 | 
			
		||||
    <x-movie-list :movies="$movies"/>
 | 
			
		||||
@endsection
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										9
									
								
								resources/views/manage/showings/create.blade.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								resources/views/manage/showings/create.blade.php
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,9 @@
 | 
			
		|||
@extends('manage.layout')
 | 
			
		||||
 | 
			
		||||
@push('head')
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('css/manage.css') }}">
 | 
			
		||||
@endpush
 | 
			
		||||
 | 
			
		||||
@section('content')
 | 
			
		||||
 | 
			
		||||
@endsection
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue