Skip to content

Commit

Permalink
fix(global): Minor fixes user timezone, company currencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gnovaro committed Feb 11, 2024
1 parent 3412421 commit bdcf3b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/Http/Controllers/User/UserCreateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public function create(Request $request)
$data['languages'] = config('app.locales');
$data['roles'] = Role::all();
$data['companies'] = Auth::user()->hasRole('SuperAdmin') ? Company::all() : [];
$data['timezones'] = timezone_identifiers_list();

return view('user.user', $data);
}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/company/company.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class="form-control">
<datalist id="currency-list">
@if(!empty($currencies))
@foreach($currencies as $currency)
<option value="{{ $currency->id }}">{{ $currency->id }} ({{ $currency->symbol }})</option>
<option value="{{ strtoupper($currency->id) }}">{{ strtoupper($currency->id) }} ({{ $currency->symbol }})</option>
@endforeach
@endif
</datalist>
Expand Down

0 comments on commit bdcf3b8

Please sign in to comment.