FEATURE: remove @lang() from blade templates when translating enumerations.
Enumerations are translated right after inserting into collection, so there is no need to translate it again.
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
|
||||
<select name="role">
|
||||
@foreach($roles as $role => $translation)
|
||||
<option value="{{$role}}" @if($role == $user->role) selected @endif>@lang($translation)</option>
|
||||
<option value="{{$role}}" @if($role == $user->role) selected @endif>{{$translation}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</label>
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
<select name="status">
|
||||
@foreach($states as $status => $translation)
|
||||
<option value="{{$status}}" @if($status == $user->status) selected @endif>@lang($translation)</option>
|
||||
<option value="{{$status}}" @if($status == $user->status) selected @endif>{{$translation}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</label>
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
<select name="role">
|
||||
@foreach($roles as $role => $translation)
|
||||
<option value="{{$role}}">@lang($translation)</option>
|
||||
<option value="{{$role}}">{{$translation}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</label>
|
||||
|
||||
Reference in New Issue
Block a user