Fixes and cleanup for user pending/registration calls

This commit is contained in:
Nabeel Shahzad
2017-12-22 16:32:21 -06:00
parent 81ac281d9f
commit babdca627e
16 changed files with 237 additions and 60 deletions

View File

@@ -50,10 +50,9 @@
<div class="row">
<div class="form-group col-sm-6">
{!! Form::label('active', 'Active:') !!}
{!! Form::label('state', 'State:') !!}
<label class="checkbox-inline">
{!! Form::hidden('active', 0, false) !!}
{!! Form::checkbox('active', 1, null) !!}
{!! Form::select('state', PilotState::labels(), null, ['class' => 'form-control select2']) !!}
</label>
</div>

View File

@@ -3,7 +3,7 @@
@section('title', 'Users')
@section('actions')
<li><a href="{!! route('admin.users.index') !!}?search=state:0">
<i class="ti-plus"></i>{!! PilotState::label(PilotState::PENDING) !!}</a>
<i class="ti-user"></i>{!! PilotState::label(PilotState::PENDING) !!}</a>
</li>
@endsection

View File

@@ -4,5 +4,5 @@
You will be notified as soon as your account is approved!
Thanks,<br>
{{ config('app.name') }}
Management, {{ config('app.name') }}
@endcomponent

View File

@@ -8,5 +8,5 @@ Visit your account now!
@endcomponent
Thanks,<br>
{{ config('app.name') }}
Management, {{ config('app.name') }}
@endcomponent

View File

@@ -0,0 +1,9 @@
@component('mail::message')
# Hi {!! $user->name !!},
Your registration to our airline was denied. Please contact
an administrator with any questions you may have.
Thanks,<br>
Management, {{ config('app.name') }}
@endcomponent