added buttons to dashboard for supply chain contracts

This commit is contained in:
2020-07-22 01:03:25 -05:00
parent f4a193ec91
commit 60814f7c1c
3 changed files with 20 additions and 2 deletions

View File

@@ -3,12 +3,30 @@
<div class="container">
<div class="row justify-content-center">
<h2>Supply Chain Contracts</h2>
<!-- Create button for creating a new contract -->
<!-- Create button for deleting own contracts -->
</div>
<br>
<div class="row">
<div class="justify-content-left">
<a class="btn btn-primary" href="/supplychain/contracts/new" role="button">Create Contract</a>
</div>
<div class="justify-content-right">
<a class="btn btn-danger" href="/supplychain/contracts/delete" role="button">Delete Contract</a>
</div>
</div>
</div>
<br>
@if(count($contracts))
@include('supplychain.includes.contracts')
@if(count($openContracts))
@include('supplychain.includes.opencontracts')
@else
@include('supplychain.includes.nocontracts')
@endif
@if(count($closedContracts))
@include('supplychain.includes.closedcontracts')
@else
@include('supplychain.includes.nocontracts')
@endif
@endsection