forked from TFMM/silent-auction
feat: migrate vehicletypes and winnertotal views to tablar
This commit is contained in:
@@ -1,37 +1,38 @@
|
|||||||
@extends('layouts.app')
|
@extends('tablar::page')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="container">
|
<div class="page-header d-print-none">
|
||||||
<div class="row">
|
<div class="container-xl">
|
||||||
<div class="col-md-10 col-md-offset-1">
|
<div class="row g-2 align-items-center">
|
||||||
<div class="panel panel-default">
|
<div class="col">
|
||||||
<div class="panel-heading">Vehicle Type Entry</div>
|
<h2 class="page-title">Vehicle Types</h2>
|
||||||
|
|
||||||
<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>
|
</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>
|
||||||
|
<div class="page-body">
|
||||||
|
<div class="container-xl">
|
||||||
|
<div class="row row-cards">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table table-vcenter card-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>ID</th>
|
||||||
|
<th>Type Name</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@foreach($vehicletypes as $type)
|
||||||
|
<tr>
|
||||||
|
<td>{{ $type->id }}</td>
|
||||||
|
<td>{{ $type->type_name }}</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</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>
|
</div>
|
||||||
|
|||||||
@@ -1,72 +1,38 @@
|
|||||||
@extends('layouts.app')
|
@extends('tablar::page')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="container">
|
<div class="page-header d-print-none">
|
||||||
<div class="row">
|
<div class="container-xl">
|
||||||
<div class="col-md-10 col-md-offset-1">
|
<div class="row g-2 align-items-center">
|
||||||
<div class="panel panel-default">
|
<div class="col">
|
||||||
<div class="panel-heading">
|
<h2 class="page-title">Winner Totals</h2>
|
||||||
<h3>
|
|
||||||
Baskets Won
|
|
||||||
</h3>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
</div>
|
||||||
<table align='center' class='table table-striped table-condensed table-hover table-bordered'>
|
</div>
|
||||||
@foreach($winnertotal_info_results as $winnertotal_info_result)
|
</div>
|
||||||
|
<div class="page-body">
|
||||||
|
<div class="container-xl">
|
||||||
|
<div class="row row-cards">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table table-vcenter card-table">
|
||||||
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>Bidder</th>
|
||||||
Bidder Number: {{ $winnertotal_info_result->bidder_assigned_number }}
|
<th>Total Won</th>
|
||||||
<th>
|
|
||||||
Name: {{ $winnertotal_info_result->bidder_fname }} {{ $winnertotal_info_result->bidder_lname }}
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
Phone Number: {{ \App\Helpers\PhoneHelper::format($winnertotal_info_result->bidder_phone) }} </th>
|
|
||||||
<th>
|
|
||||||
Total: ${{ $winnertotal_info_result->total_cost }}
|
|
||||||
</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@foreach($winner_totals as $total)
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<td>{{ $total->bidder_fname }} {{ $total->bidder_lname }}</td>
|
||||||
Address: {{ $winnertotal_info_result->bidder_addr }}
|
<td>${{ number_format($total->total_won, 2) }}</td>
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
City: {{ $winnertotal_info_result->bidder_city }}
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
State: {{ $winnertotal_info_result->bidder_state }}
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
Zip: {{ $winnertotal_info_result->bidder_zip }}
|
|
||||||
</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@if($winnertotal_list_results)
|
</div>
|
||||||
<table align='center' class='table table-striped table-condensed table-hover table-bordered'>
|
|
||||||
<tr>
|
|
||||||
<th>
|
|
||||||
Item Number:
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
Winning Bid:
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
@foreach($winnertotal_list_results as $winnertotal_result)
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
{{ $winnertotal_result->item_assigned_num }}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
${{ $winnertotal_result->winning_cost }}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
</table>
|
|
||||||
@else
|
|
||||||
<h3>
|
|
||||||
No Winning Bids
|
|
||||||
</h3>
|
|
||||||
@endif
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user