Rename PilotState class to UserState
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
<div class="form-group col-sm-6">
|
||||
{!! Form::label('state', 'State:') !!}
|
||||
<label class="checkbox-inline">
|
||||
{!! Form::select('state', PilotState::labels(), null, ['class' => 'form-control select2']) !!}
|
||||
{!! Form::select('state', UserState::labels(), null, ['class' => 'form-control select2']) !!}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
@section('title', 'Users')
|
||||
@section('actions')
|
||||
<li><a href="{!! route('admin.users.index') !!}?search=state:0">
|
||||
<i class="ti-user"></i>{!! PilotState::label(PilotState::PENDING) !!}</a>
|
||||
<i class="ti-user"></i>{!! UserState::label(UserState::PENDING) !!}</a>
|
||||
</li>
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -13,14 +13,14 @@
|
||||
<td>{!! $user->email !!}</td>
|
||||
<td>{!! show_date($user->created_at) !!}</td>
|
||||
<td class="text-center">
|
||||
@if($user->state == PilotState::ACTIVE)
|
||||
@if($user->state == UserState::ACTIVE)
|
||||
<span class="label label-success">
|
||||
@elseif($user->state == PilotState::PENDING)
|
||||
@elseif($user->state == UserState::PENDING)
|
||||
<span class="label label-warning">
|
||||
@else
|
||||
<span class="label label-default">
|
||||
@endif
|
||||
{!! PilotState::label($user->state) !!}</span>
|
||||
{!! UserState::label($user->state) !!}</span>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{!! Form::open(['route' => ['admin.users.destroy', $user->id], 'method' => 'delete']) !!}
|
||||
|
||||
@@ -3,7 +3,7 @@ A new user has signed up!
|
||||
|
||||
Name: {!! $user->name !!}!
|
||||
Email: {!! $user->email !!}
|
||||
State: {!! PilotState::label($user->state) !!}
|
||||
State: {!! UserState::label($user->state) !!}
|
||||
|
||||
{{ config('app.name') }}
|
||||
@endcomponent
|
||||
|
||||
Reference in New Issue
Block a user