2017-12-25 02:12:26 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<table class="table">
|
|
|
|
<tr>
|
2018-05-19 03:18:12 +08:00
|
|
|
<td>@lang('common.name')</td>
|
2017-12-25 02:12:26 +08:00
|
|
|
<td>
|
|
|
|
<div class="input-group form-group-no-border{{ $errors->has('name') ? ' has-danger' : '' }}">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::text('name', null, ['class' => 'form-control']) }}
|
2017-08-03 02:13:08 +08:00
|
|
|
</div>
|
2017-12-25 02:12:26 +08:00
|
|
|
@if ($errors->has('name'))
|
|
|
|
<p class="text-danger">{{ $errors->first('name') }}</p>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
2017-08-03 02:13:08 +08:00
|
|
|
|
2017-12-25 02:12:26 +08:00
|
|
|
<tr>
|
2018-05-19 03:18:12 +08:00
|
|
|
<td>@lang('common.email')</td>
|
2017-12-25 02:12:26 +08:00
|
|
|
<td>
|
|
|
|
<div class="input-group form-group-no-border{{ $errors->has('email') ? ' has-danger' : '' }}">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::text('email', null, ['class' => 'form-control']) }}
|
2017-12-25 02:12:26 +08:00
|
|
|
</div>
|
|
|
|
@if ($errors->has('email'))
|
|
|
|
<p class="text-danger">{{ $errors->first('email') }}</p>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2018-05-19 03:18:12 +08:00
|
|
|
<td>@lang('common.airline')</td>
|
2017-12-25 02:12:26 +08:00
|
|
|
<td>
|
|
|
|
<div class="input-group form-group-no-border{{ $errors->has('airline') ? ' has-danger' : '' }}">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) }}
|
2017-12-25 02:12:26 +08:00
|
|
|
</div>
|
|
|
|
@if ($errors->has('airline_id'))
|
|
|
|
<p class="text-danger">{{ $errors->first('airline_id') }}</p>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2018-03-01 05:37:24 +08:00
|
|
|
<tr>
|
2018-05-22 00:55:40 +08:00
|
|
|
<td>@lang('airports.home')</td>
|
2018-03-01 05:37:24 +08:00
|
|
|
<td>
|
|
|
|
<div class="input-group form-group-no-border{{ $errors->has('home_airport_id') ? ' has-danger' : '' }}">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::select('home_airport_id', $airports, null , ['class' => 'form-control select2']) }}
|
2018-03-01 05:37:24 +08:00
|
|
|
</div>
|
|
|
|
@if ($errors->has('home_airport_id'))
|
|
|
|
<p class="text-danger">{{ $errors->first('home_airport_id') }}</p>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2018-01-10 09:08:16 +08:00
|
|
|
<tr>
|
2018-05-19 03:18:12 +08:00
|
|
|
<td>@lang('common.country')</td>
|
2018-01-10 09:08:16 +08:00
|
|
|
<td>
|
|
|
|
<div class="input-group form-group-no-border{{ $errors->has('country') ? ' has-danger' : '' }}">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::select('country', $countries, null, ['class' => 'form-control select2' ]) }}
|
2018-01-10 09:08:16 +08:00
|
|
|
</div>
|
|
|
|
@if ($errors->has('country'))
|
|
|
|
<p class="text-danger">{{ $errors->first('country') }}</p>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2017-12-25 02:12:26 +08:00
|
|
|
<tr>
|
2018-05-19 03:18:12 +08:00
|
|
|
<td>@lang('common.timezone')</td>
|
2017-12-25 02:12:26 +08:00
|
|
|
<td>
|
|
|
|
<div class="input-group form-group-no-border{{ $errors->has('timezone') ? ' has-danger' : '' }}">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::select('timezone', $timezones, null, ['class' => 'form-control select2' ]) }}
|
2017-12-25 02:12:26 +08:00
|
|
|
</div>
|
|
|
|
@if ($errors->has('timezone'))
|
|
|
|
<p class="text-danger">{{ $errors->first('timezone') }}</p>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2018-05-19 03:52:31 +08:00
|
|
|
<td>@lang('profile.changepassword')</td>
|
2017-12-25 02:12:26 +08:00
|
|
|
<td>
|
2018-05-19 03:52:31 +08:00
|
|
|
<p>@lang('profile.newpassword'):</p>
|
2017-12-25 02:12:26 +08:00
|
|
|
<div class="input-group form-group-no-border{{ $errors->has('password') ? ' has-danger' : '' }}">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::password('password', ['class' => 'form-control']) }}
|
2017-12-25 02:12:26 +08:00
|
|
|
</div>
|
|
|
|
@if ($errors->has('password'))
|
|
|
|
<p class="text-danger">{{ $errors->first('password') }}</p>
|
|
|
|
@endif
|
|
|
|
|
2018-05-22 00:55:40 +08:00
|
|
|
<p>@lang('passwords.confirm'):</p>
|
2017-12-25 02:12:26 +08:00
|
|
|
<div class="input-group form-group-no-border{{ $errors->has('password_confirmation') ? ' has-danger' : '' }}">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::password('password_confirmation', ['class' => 'form-control']) }}
|
2017-12-25 02:12:26 +08:00
|
|
|
</div>
|
|
|
|
@if ($errors->has('password_confirmation'))
|
|
|
|
<p class="text-danger">{{ $errors->first('password_confirmation') }}</p>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
2018-09-20 23:00:23 +08:00
|
|
|
<tr>
|
|
|
|
<td>@lang('profile.avatar')</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-group form-group-no-border{{ $errors->has('avatar') ? ' has-danger' : '' }}">
|
|
|
|
{{ Form::file('avatar', null) }}
|
|
|
|
</div>
|
|
|
|
<p class="small">@lang('profile.avatarresize', [
|
|
|
|
'width' => config('phpvms.avatar.width'),
|
|
|
|
'height' => config('phpvms.avatar.height')])
|
|
|
|
</p>
|
|
|
|
@if ($errors->has('avatar'))
|
|
|
|
<p class="text-danger">{{ $errors->first('avatar') }}</p>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>@lang('profile.opt-in')</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-group form-group-no-border">
|
|
|
|
{{ Form::hidden('opt_in', 0, false) }}
|
|
|
|
{{ Form::checkbox('opt_in', 1, null) }}
|
|
|
|
</div>
|
|
|
|
<p class="small">@lang('profile.opt-in-descrip')
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2017-12-25 02:12:26 +08:00
|
|
|
|
2018-09-20 23:00:23 +08:00
|
|
|
</table>
|
2017-12-25 02:12:26 +08:00
|
|
|
|
|
|
|
<div style="width: 100%; text-align: right; padding-top: 20px;">
|
2018-05-19 03:52:31 +08:00
|
|
|
{{ Form::submit(__('profile.updateprofile'), ['class' => 'btn btn-primary']) }}
|
2017-08-03 02:13:08 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|