2023-02-02 08:17:38 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Main;
|
|
|
|
|
|
|
|
use App\Http\Controllers\Controller;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
|
|
|
class ShowingController extends Controller
|
|
|
|
{
|
|
|
|
public function show($id)
|
|
|
|
{
|
|
|
|
return view('main.showings.showing', ['title' => "Showing", 'showing' => \App\Models\Showing::findOrfail($id)]);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function showAllShowings()
|
|
|
|
{
|
|
|
|
return view('main.showings.index', ['title' => "Showings", 'showings' => \App\Models\Showing::all()]);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function order($id)
|
|
|
|
{
|
2023-02-03 09:05:29 +01:00
|
|
|
// if not authenticated piss off
|
|
|
|
if (!auth()->check()) {
|
|
|
|
return redirect()->route('login');
|
|
|
|
}
|
2023-02-02 08:17:38 +01:00
|
|
|
return view('main.order', ['title' => "Order Tickets", 'showing' => \App\Models\Showing::findOrfail($id)]);
|
|
|
|
}
|
|
|
|
}
|