This commit is contained in:
2019-04-30 00:39:48 -05:00
parent 0ebb227eb1
commit cd04c0e375
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -81,7 +81,7 @@ class ContractController extends Controller
//Fetch all of the current contracts from the database
$contractsTemp = Contract::where('end_date', '>=', $today)
->where(['type' => 'public'])->get()->toArray();
->where(['type' => 'Public'])->get()->toArray();
//Count the number of bids, and add them to the arrays
for($i = 0; $i < sizeof($contractsTemp); $i++) {
@@ -132,7 +132,7 @@ class ContractController extends Controller
//Fetch all of the current contracts from the database
$contractsTemp = Contract::where('end_date', '>=', $today)
->where(['type' => 'private'])->get();
->where(['type' => 'Private'])->get();
//Count the number of bids, and add them to the arrays
for($i = 0; $i < sizeof($contractsTemp); $i++) {
@@ -29,11 +29,11 @@
</div>
<div class="form-group">
{{ Form::label('type', 'Public Contract') }}
{{ Form::radio('type', 'public', true) }}
{{ Form::radio('type', 'Public', true) }}
</div>
<div class="form-group">
{{ Form::label('type', 'Private Contract') }}
{{ Form::radio('type', 'private', false) }}
{{ Form::radio('type', 'Private', false) }}
</div>
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
@@ -9,7 +9,7 @@
{{ $contract['title'] }}
</div>
<div class="col-sm" align="center">
Type: Public
Type: {{ $contract['type'] }}
</div>
<div class="col-sm" align="right">
<a href="/contracts/display/newbid/{{ $contract['contract_id'] }}" class="btn btn-primary" role="button">Bid on Contract</a>