-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a check in case the owner is null
- Loading branch information
Showing
1 changed file
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
<div id="bankRowData" class="hide"> | ||
<table class="table table-sm"> | ||
@foreach($owners as $owner) | ||
<tbody id="{{ strtolower($owner->logType) }}Row-{{ $owner->id }}"> | ||
<tr class="bank-row"> | ||
<td>{!! Form::select('currency_id['.strtolower($owner->logType).'-'.$owner->id.'][]', $owner->getCurrencySelect(isset($isTransferrable) ? $isTransferrable : false), null, ['class' => 'form-control selectize', 'placeholder' => 'Select Currency']) !!}</td> | ||
<td>{!! Form::text('currency_quantity['.strtolower($owner->logType).'-'.$owner->id.'][]', 0, ['class' => 'form-control']) !!}</td> | ||
<td class="text-right"><a href="#" class="btn btn-danger remove-currency-button">Remove</a></td> | ||
</tr> | ||
</tbody> | ||
@if($owner) | ||
<tbody id="{{ strtolower($owner->logType) }}Row-{{ $owner->id }}"> | ||
<tr class="bank-row"> | ||
<td>{!! Form::select('currency_id['.strtolower($owner->logType).'-'.$owner->id.'][]', $owner->getCurrencySelect(isset($isTransferrable) ? $isTransferrable : false), null, ['class' => 'form-control selectize', 'placeholder' => 'Select Currency']) !!}</td> | ||
<td>{!! Form::text('currency_quantity['.strtolower($owner->logType).'-'.$owner->id.'][]', 0, ['class' => 'form-control']) !!}</td> | ||
<td class="text-right"><a href="#" class="btn btn-danger remove-currency-button">Remove</a></td> | ||
</tr> | ||
</tbody> | ||
@endif | ||
@endforeach | ||
</table> | ||
</div> |