Merge branch 'master' of https://github.com/drkthunder02/w4rpservices
This commit is contained in:
@@ -22,7 +22,7 @@ class ContractController extends Controller
|
|||||||
public function __construct() {
|
public function __construct() {
|
||||||
$this->middleware('auth');
|
$this->middleware('auth');
|
||||||
$this->middleware('role:User');
|
$this->middleware('role:User');
|
||||||
$this->middleware('permission:contract.canbid');
|
//$this->middleware('permission:contract.canbid');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -32,14 +32,14 @@
|
|||||||
@if($contract['type'] == 'Public')
|
@if($contract['type'] == 'Public')
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<th>Corporation</th>
|
<th>Corporation / Character</th>
|
||||||
<th>Amount</th>
|
<th>Amount</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($contract['bids'] as $bid)
|
@foreach($contract['bids'] as $bid)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $bid['corporation_name'] }}</td>
|
<td>{{ $bid['corporation_name'] }} : {{ $bid['character_name'] }}</td>
|
||||||
<td>{{ number_format($bid['bid_amount'], 2, '.', ',') }}</td>
|
<td>{{ number_format($bid['bid_amount'], 2, '.', ',') }}</td>
|
||||||
@if(auth()->user()->character_id == $bid['character_id'])
|
@if(auth()->user()->character_id == $bid['character_id'])
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -41,14 +41,14 @@
|
|||||||
@if($contract['bid_count'] > 0)
|
@if($contract['bid_count'] > 0)
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<th>Corporation</th>
|
<th>Corporation / Character</th>
|
||||||
<th>Amount</th>
|
<th>Amount</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($contract['bids'] as $bid)
|
@foreach($contract['bids'] as $bid)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $bid['corporation_name'] }}</td>
|
<td>{{ $bid['corporation_name'] }} : {{ $bid['character_name'] }}</td>
|
||||||
<td>{{ number_format($bid['bid_amount'], 2, '.', ',') }}</td>
|
<td>{{ number_format($bid['bid_amount'], 2, '.', ',') }}</td>
|
||||||
@if(auth()->user()->character_id == $bid['character_id'])
|
@if(auth()->user()->character_id == $bid['character_id'])
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
Reference in New Issue
Block a user