This commit is contained in:
2019-12-08 22:58:42 -06:00
3 changed files with 5 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ class ContractController extends Controller
public function __construct() {
$this->middleware('auth');
$this->middleware('role:User');
$this->middleware('permission:contract.canbid');
//$this->middleware('permission:contract.canbid');
}
/**

View File

@@ -32,14 +32,14 @@
@if($contract['type'] == 'Public')
<table class="table table-striped">
<thead>
<th>Corporation</th>
<th>Corporation / Character</th>
<th>Amount</th>
<th></th>
</thead>
<tbody>
@foreach($contract['bids'] as $bid)
<tr>
<td>{{ $bid['corporation_name'] }}</td>
<td>{{ $bid['corporation_name'] }} : {{ $bid['character_name'] }}</td>
<td>{{ number_format($bid['bid_amount'], 2, '.', ',') }}</td>
@if(auth()->user()->character_id == $bid['character_id'])
<td>

View File

@@ -41,14 +41,14 @@
@if($contract['bid_count'] > 0)
<table class="table table-striped">
<thead>
<th>Corporation</th>
<th>Corporation / Character</th>
<th>Amount</th>
<th></th>
</thead>
<tbody>
@foreach($contract['bids'] as $bid)
<tr>
<td>{{ $bid['corporation_name'] }}</td>
<td>{{ $bid['corporation_name'] }} : {{ $bid['character_name'] }}</td>
<td>{{ number_format($bid['bid_amount'], 2, '.', ',') }}</td>
@if(auth()->user()->character_id == $bid['character_id'])
<td>