updates to add show judging

This commit is contained in:
2019-07-11 20:55:45 -04:00
parent 7cdea664e1
commit c2aced484d
34 changed files with 2341 additions and 318 deletions

View File

@ -0,0 +1,40 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading">Award Category Entry</div>
<div class="panel-body">
<form id="winner_form" required method="post" action="/awardcategories" enctype="multipart/form-data" class=form-horizontal>
{{ csrf_field() }}
<div class=form-group>
<label for=category class="col-sm-3 col-sm-offset-1 control-label">
Award Category:
</label>
<div class=col-sm-4>
<input type="text" name="category" id="category" class=form-control />
</div>
</div>
<div class=form-group>
<label for=vehtype class="col-sm-3 col-sm-offset-1 control-label">
Vehicle Type?
</label>
<div class=col-sm-1>
<input class="form-check-input" type="checkbox" value="" id="vehtype" name="vehtype">
</div>
</div>
<div class=form-group>
<div class="col-sm-offset-5 col-sm-10">
<button type="submit" value="Submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@ -0,0 +1,75 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading">
<h3>
Car Show Scores
</h3>
</div>
<div class="panel-body">
@if($carshowscore_results)
<table align='center' class='table table-striped table-condensed table-hover table-bordered'>
<tr>
<th>
Vehicle Number:
</th>
<th>
Total Score:
</th>
<th>
Year:
</th>
<th>
Make:
</th>
<th>
Model:
</th>
<th>
Category:
</th>
<th>
Owner:
</th>
</tr>
@foreach($carshowscore_results as $carshowscore_result)
<tr>
<td>
{{ $carshowscore_result->scoredVehicle[0]->owner }}
</td>
<td>
{{ $carshowscore_result->totalscore }}
</td>
<td>
{{ $carshowscore_result->scoredVehicle[0]->year }}
</td>
<td>
{{ $carshowscore_result->scoredVehicle[0]->make }}
</td>
<td>
{{ $carshowscore_result->scoredVehicle[0]->model }}
</td>
<td>
{{ $carshowscore_result->scoredVehicle[0]->vehicleType->category_name }}
</td>
<td>
{{ $carshowscore_result->scoredVehicle[0]->vehicleOwner->bidder_fname }} {{ $carshowscore_result->scoredVehicle[0]->vehicleOwner->bidder_lname }}
</td>
</tr>
@endforeach
</table>
@else
<h3>
No Car Show Scores!
</h3>
@endif
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@ -0,0 +1,76 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading">
<h3>
Car Show Winners
</h3>
</div>
<div class="panel-body">
@if($carshowwinner_results)
<table align='center' class='table table-striped table-condensed table-hover table-bordered'>
<tr>
<th>
Award Category:
</th>
<th>
Place:
</th>
<th>
Vehicle Number:
</th>
<th>
Year:
</th>
<th>
Make:
</th>
<th>
Model:
</th>
<th>
Owner:
</th>
</tr>
@foreach($carshowwinner_results as $carshowwinner_result)
<tr>
<td>
{{ $carshowwinner_result->awardCategory[0]->category_name }}
</td>
<td>
{{ $carshowwinner_result->place }}
</td>
<td>
{{ $carshowwinner_result->awardVehicle[0]->owner }}
</td>
<td>
{{ $carshowwinner_result->awardVehicle[0]->year }}
</td>
<td>
{{ $carshowwinner_result->awardVehicle[0]->make }}
</td>
<td>
{{ $carshowwinner_result->awardVehicle[0]->model }}
</td>
<td>
{{ $carshowwinner_result->awardVehicle[0]->vehicleOwner->bidder_fname }} {{ $carshowwinner_result->awardVehicle[0]->vehicleOwner->bidder_lname }}
</td>
</tr>
@endforeach
</table>
@else
<h3>
No Car Show Winners!
</h3>
@endif
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@ -0,0 +1,32 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading">Car Show Judge Creation</div>
<div class="panel-body">
<form id="winner_form" required method="post" action="/judges" enctype="multipart/form-data" class=form-horizontal>
{{ csrf_field() }}
<div class=form-group>
<label for=judgenum class="col-sm-2 col-sm-offset-3 control-label">
Judge Number:
</label>
<div class=col-sm-2>
<input type="text" name="judgenum" id="judgenum" class=form-control />
</div>
</div>
<div class=form-group>
<div class="col-sm-offset-5 col-sm-10">
<button type="submit" value="Submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@ -0,0 +1,52 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading">Car Show Judging Entry</div>
<div class="panel-body">
<form id="winner_form" required method="post" action="/judgingentry" enctype="multipart/form-data" class=form-horizontal>
{{ csrf_field() }}
<div class=form-group>
<label for=vehnum class="col-sm-2 col-sm-offset-3 control-label">
Vehicle Number:
</label>
<div class=col-sm-2>
<select name="vehnum" id="vehnum" required class=form-control>
<?php echo App\Helpers\VehicleSelectList::vehicleShowNumbers(); ?>
</select>
</div>
</div>
<div class=form-group>
<label for=judgenum class="col-sm-2 col-sm-offset-3 control-label">
Judge Number:
</label>
<div class=col-sm-2>
<select name="judgenum" id="judgenum" required class=form-control>
<?php echo App\Helpers\JudgesSelectList::judgesShowNumbers(); ?>
</select>
</div>
</div>
<div class=form-group>
<label for=vehscore class="col-sm-2 col-sm-offset-3 control-label">
Overall Score:
</label>
<div class=col-sm-2>
<input type="text" name="vehscore" id="vehscore" class=form-control />
</div>
</div>
<div class=form-group>
<div class="col-sm-offset-5 col-sm-10">
<button type="submit" value="Submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@ -104,6 +104,50 @@
</li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
CarShow
<span class="caret">
</span>
</a>
<ul class="dropdown-menu">
<li>
<a href="/showcars">
Add Car
</a>
</li>
<li>
<a href="/showcarlist">
List Show Cars
</a>
</li>
<li>
<a href="/judgingentry">
Judging Entry
</a>
</li>
<li>
<a href="/pcentry">
People's Choice Entry
</a>
</li>
<li>
<a href="/judges">
Add Judge
</a>
</li>
<li>
<a href="/awardcategories">
Add Award Category
</a>
</li>
<li>
<a href="/showwinners">
Car Show Winners
</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
Reports

View File

@ -0,0 +1,42 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading">Car Show People's Choice Entry</div>
<div class="panel-body">
<form id="winner_form" required method="post" action="/pcentry" enctype="multipart/form-data" class=form-horizontal>
{{ csrf_field() }}
<div class=form-group>
<label for=vehnum class="col-sm-2 col-sm-offset-3 control-label">
Vehicle Number:
</label>
<div class=col-sm-2>
<select name="vehnum" id="vehnum" required class=form-control>
<?php echo App\Helpers\VehicleSelectList::vehicleShowNumbers(); ?>
</select>
</div>
</div>
<div class=form-group>
<label for=pc_count class="col-sm-2 col-sm-offset-3 control-label">
P.C. Ballot Count:
</label>
<div class=col-sm-2>
<input type="text" name="pc_count" id="pc_count" class=form-control />
</div>
</div>
<div class=form-group>
<div class="col-sm-offset-5 col-sm-10">
<button type="submit" value="Submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@ -0,0 +1,111 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<h3>
Show Car List
</h3>
</div>
<div class="panel-body">
@if($showcarlist_results)
<table align='center' class='table table-striped table-condensed table-hover table-bordered'>
<tr>
<th>
#:
</th>
<th>
Last Name:
</th>
<th>
First Name:
</th>
<th>
Address:
</th>
<th>
City:
</th>
<th>
State:
</th>
<th>
Zip:
</th>
<th>
Phone:
</th>
<th>
Email:
</th>
<th>
Year:
</th>
<th>
Make:
</th>
<th>
Model:
</th>
<th>
Type:
</th>
</tr>
@foreach($showcarlist_results as $showcarlist_result)
<tr>
<td>
{{ $showcarlist_result->bidder_assigned_number }}
</td>
<td>
{{ $showcarlist_result->bidder_lname }}
</td>
<td>
{{ $showcarlist_result->bidder_fname }}
</td>
<td>
{{ $showcarlist_result->bidder_addr }}
</td>
<td>
{{ $showcarlist_result->bidder_city }}
</td>
<td>
{{ $showcarlist_result->bidder_state }}
</td>
<td>
{{ $showcarlist_result->bidder_zip }}
</td>
<td>
{{ $showcarlist_result->bidder_phone }}
</td>
<td>
{{ $showcarlist_result->bidder_email }}
</td>
<td>
{{ $showcarlist_result->year }}
</td>
<td>
{{ $showcarlist_result->make }}
</td>
<td>
{{ $showcarlist_result->model }}
</td>
<td>
{{ $showcarlist_result->vehicles[0]->vehicleType->category_name }}
</td>
</tr>
@endforeach
</table>
@else
<h3>
No Bidders
</h3>
@endif
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@ -0,0 +1,138 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading">Show Car Entry</div>
<div class="panel-body">
<form id="bidder_form" required method="post" action="/showcars" enctype="multipart/form-data" class=form-horizontal>
{{ csrf_field() }}
<div class=form-group>
<label for=biddernum class="col-sm-3 col-sm-offset-1 control-label">
Car / Bidder Number:
</label>
<div class=col-sm-2>
<input type="text" name="biddernum" id="biddernum" required class=form-control />
</div>
</div>
<div class=form-group>
<label for=bidderfname class="col-sm-3 col-sm-offset-1 control-label">
First Name:
</label>
<div class=col-sm-4>
<input type="text" name="bidderfname" id="bidderfname" required class=form-control />
</div>
</div>
<div class=form-group>
<label for=bidderlname class="col-sm-3 col-sm-offset-1 control-label">
Last Name:
</label>
<div class=col-sm-4>
<input type="text" name="bidderlname" id="bidderlname" required class=form-control />
</div>
</div>
<div class=form-group>
<label for=bidderaddr class="col-sm-3 col-sm-offset-1 control-label">
Address:
</label>
<div class=col-sm-4>
<input type="text" name="bidderaddr" id="bidderaddr" required class=form-control />
</div>
</div>
<div class=form-group>
<label for=biddercity class="col-sm-3 col-sm-offset-1 control-label">
City:
</label>
<div class=col-sm-4>
<input type="text" name="biddercity" id="biddercity" required class=form-control />
</div>
</div>
<div class=form-group>
<label for=bidderstate class="col-sm-3 col-sm-offset-1 control-label">
State:
</label>
<div class=col-sm-2>
<input type="text" name="bidderstate" id="bidderstate" required class=form-control />
</div>
</div>
<div class=form-group>
<label for=bidderzip class="col-sm-3 col-sm-offset-1 control-label">
Zip:
</label>
<div class=col-sm-2>
<input type="text" name="bidderzip" id="bidderzip" required class=form-control />
</div>
</div>
<div class=form-group>
<label for=bidderphone class="col-sm-3 col-sm-offset-1 control-label">
Phone Number:
</label>
<div class=col-sm-4>
<input type="text" name="bidderphone" id="bidderphone" required class=form-control />
</div>
</div>
<div class=form-group>
<label for=bidderemail class="col-sm-3 col-sm-offset-1 control-label">
Email:
</label>
<div class=col-sm-4>
<input type="text" name="bidderemail" id="bidderemail" class=form-control />
</div>
</div>
<div class=form-group>
<label for=vehyear class="col-sm-3 col-sm-offset-1 control-label">
Vechicle Year:
</label>
<div class=col-sm-4>
<input type="text" name="vehyear" id="vehyear" class=form-control />
</div>
</div>
<div class=form-group>
<label for=vehmake class="col-sm-3 col-sm-offset-1 control-label">
Vehicle Make:
</label>
<div class=col-sm-4>
<input type="text" name="vehmake" id="vehmake" class=form-control />
</div>
</div>
<div class=form-group>
<label for=vehmodel class="col-sm-3 col-sm-offset-1 control-label">
Vehicle Model:
</label>
<div class=col-sm-4>
<input type="text" name="vehmodel" id="vehmodel" class=form-control />
</div>
</div>
<div class=form-group>
<label for=vehtype class="col-sm-3 col-sm-offset-1 control-label">
Vehicle Type:
</label>
<div class=col-sm-2>
<select name="vehtype" id="vehtype" required class=form-control>
<?php echo App\Helpers\VehicleTypeSelectList::vehicleTypeShowTypes(); ?>
</select>
</div>
</div>
<div class=form-group>
<label for=vehdonotjudge class="col-sm-3 col-sm-offset-1 control-label">
DO NOT JUDGE:
</label>
<div class=col-sm-1>
<input class="form-check-input" type="checkbox" value="" id="vehdonotjudge">
</div>
</div>
<div class=form-group>
<div class="col-sm-offset-5 col-sm-10">
<button type="submit" value="Submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@ -0,0 +1,40 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading">Vehicle Type Entry</div>
<div class="panel-body">
<form id="winner_form" required method="post" action="/vehicletypes" enctype="multipart/form-data" class=form-horizontal>
{{ csrf_field() }}
<div class=form-group>
<label for=vehtype class="col-sm-3 col-sm-offset-1 control-label">
Vehicle Type:
</label>
<div class=col-sm-4>
<input type="text" name="vehtype" id="vehtype" class=form-control />
</div>
</div>
<div class=form-group>
<div class="col-sm-offset-5 col-sm-10">
<button type="submit" value="Submit" class="btn btn-primary">Submit</button>
</div>
</div>
<div class=form-group>
<label for=vehdonotjudge class="col-sm-3 col-sm-offset-1 control-label">
Vehicle Type?:
</label>
<div class=col-sm-1>
<input class="form-check-input" type="checkbox" value="" id="vehtype">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection