mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 03:04:05 +00:00
(add basic concert form)
This commit is contained in:
14
app/Http/Controllers/Backstage/ConcertsController.php
Normal file
14
app/Http/Controllers/Backstage/ConcertsController.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Backstage;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Http\Controllers\Controller;
|
||||
|
||||
class ConcertsController extends Controller
|
||||
{
|
||||
public function create()
|
||||
{
|
||||
return view('backstage.concerts.create');
|
||||
}
|
||||
}
|
||||
1
public/img/logo.svg
Normal file
1
public/img/logo.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg viewBox="0 0 42 42" xmlns="http://www.w3.org/2000/svg"><path d="M12.667 17.222V5.666c0-1.84-1.493-3.333-3.334-3.333C7.496 2.333 6 3.825 6 5.666v23.337C6 35.628 11.373 41 18 41c3.687 0 6.984-1.66 9.185-4.276l11.712-11.712c1.17-1.168.85-2.572-.712-3.133l-.585-.21c-1.565-.563-3.778-.068-4.948 1.102L30 25.424V4c0-1.65-1.343-3-3-3-1.653 0-3 1.343-3 3v11.333l-11.333 1.89z" fill="#FFF" fill-rule="evenodd"/></svg>
|
||||
|
After Width: | Height: | Size: 415 B |
203
resources/views/backstage/concerts/create.blade.php
Normal file
203
resources/views/backstage/concerts/create.blade.php
Normal file
@@ -0,0 +1,203 @@
|
||||
@extends('layouts.master')
|
||||
|
||||
@section('body')
|
||||
<header>
|
||||
<nav class="navbar p-xs-y-3">
|
||||
<div class="container">
|
||||
<div class="navbar-content">
|
||||
<div>
|
||||
<img src="/img/logo.svg" alt="TicketBeast" style="height: 2.5rem;">
|
||||
</div>
|
||||
<div>
|
||||
<form class="inline-block" action="#" method="POST">
|
||||
{{ csrf_field() }}
|
||||
<button type="submit" class="link link-light">Log out</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<div class="bg-light p-xs-y-4 border-b">
|
||||
<div class="container">
|
||||
<h1 class="text-lg">Add a concert</h1>
|
||||
</div>
|
||||
</div>
|
||||
<form class="bg-soft p-xs-y-5" action="/backstage/concerts" method="POST">
|
||||
{{ csrf_field() }}
|
||||
|
||||
@if ($errors->any())
|
||||
<div class="container m-xs-b-4">
|
||||
<div class="alert alert-danger">
|
||||
<h2 class="text-base text-danger wt-bold m-xs-b-2">
|
||||
There {{ $errors->count() == 1 ? 'is' : 'are' }} {{ $errors->count() }} {{ str_plural('error', $errors->count() )}} with this concert:
|
||||
</h2>
|
||||
<ul class="bullet-list text-danger">
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="border-b p-xs-b-4 m-xs-b-4">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col col-lg-4">
|
||||
<div class="p-xs-y-4">
|
||||
<h2 class="text-base wt-medium m-xs-b-4">Concert Details</h2>
|
||||
<p class="text-dark-soft text-sm m-xs-b-4">Tell us who's playing! <em>(Please be Slayer!)</em></p>
|
||||
<p class="text-dark-soft text-sm">Include the headliner in the concert name, use the subtitle section to list any opening bands, and add any important information to the description.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-lg-8">
|
||||
<div class="card">
|
||||
<div class="card-section">
|
||||
<div class="form-group {{ $errors->first('title', 'has-error') }}">
|
||||
<label class="form-label">Title</label>
|
||||
<input name="title" class="form-control" value="{{ old('title') }}" placeholder="The Headliners">
|
||||
</div>
|
||||
<div class="form-group {{ $errors->first('subtitle', 'has-error') }}">
|
||||
<label class="form-label">Subtitle</label>
|
||||
<input name="subtitle" class="form-control" value="{{ old('subtitle') }}" placeholder="with The Openers (optional)">
|
||||
</div>
|
||||
<div class="form-group {{ $errors->first('additional_information', 'has-error') }}">
|
||||
<label class="form-label">Additional Information</label>
|
||||
<textarea name="additional_information" class="form-control" rows="4" placeholder="This concert is 19+ (optional)">{{ old('additional_information') }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="border-b p-xs-b-4 m-xs-b-4">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col col-lg-4">
|
||||
<div class="p-xs-y-4">
|
||||
<h2 class="text-base wt-medium m-xs-b-4">Date & Time</h2>
|
||||
<p class="text-dark-soft text-sm">True metalheads really only care about the obscure openers, so make sure they don't get there late!</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-lg-8">
|
||||
<div class="card">
|
||||
<div class="card-section">
|
||||
<div class="row">
|
||||
<div class="col col-md-6">
|
||||
<div class="form-group {{ $errors->first('date', 'has-error') }}">
|
||||
<label class="form-label">Date</label>
|
||||
<input type="date" name="date" class="form-control" placeholder="yyyy-mm-dd" value="{{ old('date') }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-6">
|
||||
|
||||
<div class="form-group {{ $errors->first('time', 'has-error') }}">
|
||||
<label class="form-label">Start Time</label>
|
||||
<input name="time" class="form-control" placeholder="7:00pm" value="{{ old('time') }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="border-b p-xs-b-4 m-xs-b-4">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col col-lg-4">
|
||||
<div class="p-xs-y-4">
|
||||
<h2 class="text-base wt-medium m-xs-b-4">Venue Information</h2>
|
||||
<p class="text-dark-soft text-sm">Where's the show? Let attendees know the venue name and address so they can bring the mosh.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-lg-8">
|
||||
<div class="card">
|
||||
<div class="card-section">
|
||||
<div class="form-group {{ $errors->first('venue', 'has-error') }}">
|
||||
<label class="form-label">Venue Name</label>
|
||||
<input name="venue" class="form-control" value="{{ old('venue') }}" placeholder="The Mosh Pit">
|
||||
</div>
|
||||
<div class="form-group {{ $errors->first('venue_address', 'has-error') }}">
|
||||
<label class="form-label">Stree Address</label>
|
||||
<input name="venue_address" class="form-control" value="{{ old('venue_address') }}" placeholder="500 Example Ave.">
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col col-sm-4">
|
||||
<div class="form-group {{ $errors->first('city', 'has-error') }}">
|
||||
<label class="form-label">City</label>
|
||||
<input name="city" class="form-control" value="{{ old('city') }}" placeholder="Laraville">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-sm-4">
|
||||
<div class="form-group {{ $errors->first('state', 'has-error') }}">
|
||||
<label class="form-label">State/Province</label>
|
||||
<input name="state" class="form-control" value="{{ old('state') }}" placeholder="ON">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-sm-4">
|
||||
<div class="form-group {{ $errors->first('zip', 'has-error') }}">
|
||||
<label class="form-label">ZIP</label>
|
||||
<input name="zip" class="form-control" value="{{ old('zip') }}" placeholder="90210">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="border-b p-xs-b-4 m-xs-b-4">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col col-lg-4">
|
||||
<div class="p-xs-y-4">
|
||||
<h2 class="text-base wt-medium m-xs-b-4">Tickets & Pricing</h2>
|
||||
<p class="text-dark-soft text-sm">Set your ticket price and availability, but don't forget, metalheads are cheap so keep it reasonable.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-lg-8">
|
||||
<div class="card">
|
||||
<div class="card-section">
|
||||
<div class="row">
|
||||
<div class="col col-md-6">
|
||||
<div class="form-group {{ $errors->first('ticket_price', 'has-error') }}">
|
||||
<label class="form-label">Price</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon text-dark-muted">
|
||||
$
|
||||
</span>
|
||||
<input name="ticket_price" class="form-control" placeholder="0.00" value="{{ old('ticket_price') }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-6">
|
||||
<div class="form-group {{ $errors->first('ticket_quantity', 'has-error') }}">
|
||||
<label class="form-label">Ticket Quantity</label>
|
||||
<input name="ticket_quantity" class="form-control" placeholder="250" value="{{ old('ticket_quantity') }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container text-right">
|
||||
<button type="submit" class="btn btn-primary">Add Concert</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<footer class="p-xs-y-6 text-light-muted">
|
||||
<div class="container">
|
||||
<p class="text-center">© TicketBeast {{ date('Y') }}</p>
|
||||
</div>
|
||||
</footer>
|
||||
@endsection
|
||||
@@ -17,3 +17,5 @@ Route::get('/orders/{confirmationNumber}', 'OrdersController@show');
|
||||
|
||||
Route::get('/login', 'Auth\LoginController@showLoginForm');
|
||||
Route::post('/login', 'Auth\LoginController@login');
|
||||
|
||||
Route::get('/backstage/concerts/new', 'Backstage\ConcertsController@create');
|
||||
|
||||
Reference in New Issue
Block a user