contract blade
This commit is contained in:
@@ -73,10 +73,18 @@ class ContractController extends Controller
|
|||||||
//Get all of the bids for the current contract
|
//Get all of the bids for the current contract
|
||||||
$bids = Bid::where(['contract_id' => $contract->id])->get();
|
$bids = Bid::where(['contract_id' => $contract->id])->get();
|
||||||
//Build the data structure
|
//Build the data structure
|
||||||
|
$temp = [
|
||||||
|
'contract' => [
|
||||||
|
'con' => $contract,
|
||||||
|
'bids' => $bids,
|
||||||
|
],
|
||||||
|
];
|
||||||
|
/*
|
||||||
$temp = [
|
$temp = [
|
||||||
'contract' => $contract,
|
'contract' => $contract,
|
||||||
'bids' => $bids,
|
'bids' => $bids,
|
||||||
];
|
];
|
||||||
|
*/
|
||||||
|
|
||||||
//Push the new contract onto the stack
|
//Push the new contract onto the stack
|
||||||
array_push($data, $temp);
|
array_push($data, $temp);
|
||||||
|
|||||||
@@ -6,9 +6,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
{{ dd($data) }}
|
|
||||||
@if(count($data))
|
@if(count($data))
|
||||||
|
@foreach($data as $contract)
|
||||||
|
@include('contracts.includes.public')
|
||||||
|
@endforeach
|
||||||
<br>
|
<br>
|
||||||
@else
|
@else
|
||||||
@include('contracts.includes.nocontracts')
|
@include('contracts.includes.nocontracts')
|
||||||
|
|||||||
Reference in New Issue
Block a user