@@ -23,13 +23,7 @@ return [
|
||||
|
||||
// Overrides config/phpvms.php
|
||||
'phpvms' => [
|
||||
/**
|
||||
* The ISO "Currency Code" to use, the list is in config/money.php
|
||||
*
|
||||
* Note, do not change this after you've set it, unless you don't
|
||||
* care that the currencies aren't "exchanged" into the new format
|
||||
*/
|
||||
'currency' => 'USD',
|
||||
|
||||
],
|
||||
|
||||
//
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
@if(count($aircraft->expenses) > 0)
|
||||
<thead>
|
||||
<th>Name</th>
|
||||
<th>Cost <span class="small">{{ currency(config('phpvms.currency')) }}</span></th>
|
||||
<th>Cost <span class="small">{{ currency(setting('units.currency')) }}</span></th>
|
||||
<th>Type</th>
|
||||
<th></th>
|
||||
</thead>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
@if(count($airport->expenses))
|
||||
<thead>
|
||||
<th>Name</th>
|
||||
<th>Cost <span class="small">{{ currency(config('phpvms.currency')) }}</span></th>
|
||||
<th>Cost <span class="small">{{ currency(setting('units.currency')) }}</span></th>
|
||||
<th>Type</th>
|
||||
<th></th>
|
||||
</thead>
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
<td>{{ $entry->memo }}</td>
|
||||
<td>
|
||||
@if($entry->credit)
|
||||
{{ money($entry->credit, config('phpvms.currency')) }}
|
||||
{{ money($entry->credit, setting('units.currency')) }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if($entry->debit)
|
||||
{{ money($entry->debit, config('phpvms.currency')) }}
|
||||
{{ money($entry->debit, setting('units.currency')) }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -37,6 +37,12 @@
|
||||
list_to_assoc($themes),
|
||||
$setting->value,
|
||||
['class' => 'select2', 'style' => 'width: 100%; text-align: left;']) }}
|
||||
@elseif($setting->id === 'units_currency')
|
||||
{{ Form::select(
|
||||
$setting->id,
|
||||
$currencies,
|
||||
$setting->value,
|
||||
['class' => 'select2', 'style' => 'width: 100%; text-align: left;']) }}
|
||||
@else
|
||||
{{ Form::select(
|
||||
$setting->id,
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
@if(count($subfleet->expenses))
|
||||
<thead>
|
||||
<th>Name</th>
|
||||
<th>Cost <span class="small">{{ currency(config('phpvms.currency')) }}</span></th>
|
||||
<th>Cost <span class="small">{{ currency(setting('units.currency', 'USD')) }}</span></th>
|
||||
<th>Type</th>
|
||||
<th></th>
|
||||
</thead>
|
||||
|
||||
Reference in New Issue
Block a user