silent-auction/resources/views/checkout.blade.php

121 lines
4.7 KiB
PHP
Raw Permalink Normal View History

2018-06-11 13:43:21 -04:00
@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">Checkout</div>
2018-12-24 13:02:45 -05:00
2018-06-11 13:43:21 -04:00
<div class="panel-body">
<form id="checkout_form" required method="post" action="/checkout" enctype="multipart/form-data" class=form-horizontal>
{{ csrf_field() }}
<table align='center' class='table table-striped table-condensed table-hover table-bordered'>
@foreach($checkout_info_results as $checkout_info_result)
2018-12-24 13:02:45 -05:00
@php
$bidnum = $checkout_info_result->idbidders;
$totaldue = $checkout_info_result->total_cost;
@endphp
2018-06-11 13:43:21 -04:00
<tr>
<th colspan="2">
<h2>
2018-12-24 13:02:45 -05:00
Bidder Number: {{ $checkout_info_result->bidder_assigned_number }}
2018-06-11 13:43:21 -04:00
</h2>
</th>
<th colspan="2">
<h2>
2018-12-24 13:02:45 -05:00
Total: ${{ $checkout_info_result->total_cost }}
2018-06-11 13:43:21 -04:00
</h2>
</th>
</tr>
<tr>
<th colspan="2">
2018-12-24 13:02:45 -05:00
Name: {{ $checkout_info_result->bidder_fname }} {{ $checkout_info_result->bidder_lname }}
2018-06-11 13:43:21 -04:00
</th>
<th colspan="2">
2018-12-24 13:02:45 -05:00
Phone Number: {{ $checkout_info_result->bidder_phone }}
2018-06-11 13:43:21 -04:00
</th>
</tr>
<tr>
<th>
2018-12-24 13:02:45 -05:00
Address: {{ $checkout_info_result->bidder_addr }}
2018-06-11 13:43:21 -04:00
</th>
<th>
2018-12-24 13:02:45 -05:00
City: {{ $checkout_info_result->bidder_city }}
2018-06-11 13:43:21 -04:00
</th>
<th>
2018-12-24 13:02:45 -05:00
State: {{ $checkout_info_result->bidder_state }}
2018-06-11 13:43:21 -04:00
</th>
<th>
2018-12-24 13:02:45 -05:00
Zip: {{ $checkout_info_result->bidder_zip }}
2018-06-11 13:43:21 -04:00
</th>
</tr>
@endforeach
</table>
2018-12-24 13:02:45 -05:00
@if($checkout_list_results)
2018-06-11 13:43:21 -04:00
<table align='center' class='table table-striped table-condensed table-hover table-bordered'>
<tr>
<th>
Item Number:
</th>
<th>
Winning Bid:
</th>
</tr>
2018-12-24 13:02:45 -05:00
@foreach($checkout_list_results as $checkout_list_result)
2018-06-11 13:43:21 -04:00
<tr>
<td>
2018-12-24 13:02:45 -05:00
{{ $checkout_list_result->item_assigned_num }}
2018-06-11 13:43:21 -04:00
</td>
<td>
2018-12-24 13:02:45 -05:00
${{ $checkout_list_result->winning_cost }}
2018-06-11 13:43:21 -04:00
</td>
</tr>
@endforeach
</table>
@else
<h3>
No Winning Bids
</h3>
@endif
<div class=form-group>
<label for=paymentmethod class="col-sm-3 col-sm-offset-1 control-label">
Payment Method:
</label>
<div class=col-sm-4>
<select name="checkout_payment_method" id="checkout_payment_method" required class=form-control>
2018-12-24 13:03:20 -05:00
<?php echo App\Helpers\PaymentMethodSelectList::PaymentShowMethods(); ?>
2018-06-11 13:43:21 -04:00
</select>
</div>
</div>
<div class=form-group>
<label for=check_number class="col-sm-3 col-sm-offset-1 control-label">
Check Number:
</label>
<div class=col-sm-4>
<input type="text" name="check_number" id="check_number" class=form-control />
</div>
</div>
<div class=form-group>
<label for=cc_transaction class="col-sm-3 col-sm-offset-1 control-label">
Credit Card Transaction Number:
</label>
<div class=col-sm-4>
<input type="text" name="cc_transaction" id="cc_transaction" 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">Checkout</button>
</div>
</div>
2018-12-24 13:02:45 -05:00
<input type="hidden" name="winnertotal" value={{ $totaldue }}>
<input type="hidden" name="checkoutbiddernum" value={{ $bidnum }}>
2018-06-11 13:43:21 -04:00
</form>
</div>
</div>
</div>
</div>
</div>
@endsection