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:
Michal Kváček
2016-01-27 01:58:57 +01:00
parent ff17e528ae
commit 452280a6fe
2 changed files with 3 additions and 3 deletions
@@ -31,7 +31,7 @@
<select name="role"> <select name="role">
@foreach($roles as $role => $translation) @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 @endforeach
</select> </select>
</label> </label>
@@ -47,7 +47,7 @@
<select name="status"> <select name="status">
@foreach($states as $status => $translation) @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 @endforeach
</select> </select>
</label> </label>
@@ -36,7 +36,7 @@
<select name="role"> <select name="role">
@foreach($roles as $role => $translation) @foreach($roles as $role => $translation)
<option value="{{$role}}">@lang($translation)</option> <option value="{{$role}}">{{$translation}}</option>
@endforeach @endforeach
</select> </select>
</label> </label>