{{ trans('labels.editadmin') }}
@if(session()->has('message'))
{{ session()->get('message') }}
@endif
@if(session()->has('errorMessage'))
{{ session()->get('errorMessage') }}
@endif
{!! Form::open(array('url' =>'admin/updateadmin', 'method'=>'post', 'class' => 'form-horizontal form-validate', 'enctype'=>'multipart/form-data')) !!}
{!! Form::hidden('myid', $result['myid'], array('id'=>'myid')) !!}
{!! Form::close() !!}
{{ trans('labels.AdminTypeText') }}
{{ trans('labels.Personal Info') }}
{!! Form::text('first_name', $result['admins'][0]->first_name, array('class'=>'form-control field-validate', 'id'=>'first_name')) !!}
{{ trans('labels.FirstNameText') }}
{!! Form::text('last_name', $result['admins'][0]->last_name, array('class'=>'form-control field-validate', 'id'=>'last_name')) !!}
{{ trans('labels.lastNameText') }}
{!! Form::text('phone', $result['admins'][0]->phone, array('class'=>'form-control', 'id'=>'phone')) !!}
{{ trans('labels.TelephoneText') }}
{!! Form::file('newImage', array('id'=>'newImage')) !!}
{{ trans('labels.PictureText') }}
{!! Form::hidden('oldImage', $result['admins'][0]->image, array('id'=>'oldImage')) !!} @if(!empty($result['admins'][0]->image))
@else
@endif
{!! Form::hidden('oldImage', $result['admins'][0]->image, array('id'=>'oldImage')) !!} @if(!empty($result['admins'][0]->image))
.'/resources/assets/images/default_images/user.png' }})
{{ trans('labels.AddressInfo') }}
{!! Form::text('address', $result['admins'][0]->address, array('class'=>'form-control', 'id'=>'address')) !!}
{{ trans('labels.StreetAddressText') }}
{!! Form::text('zip', $result['admins'][0]->zip, array('class'=>'form-control', 'id'=>'zip')) !!}
{{ trans('labels.Zip/Postal Code Text') }}
{!! Form::text('city', $result['admins'][0]->city, array('class'=>'form-control', 'id'=>'city')) !!}
{{ trans('labels.CityText') }}
{{ trans('labels.CountryText') }}
{{ trans('labels.StateText') }}
{{ trans('labels.Login Info') }}
{!! Form::text('email', $result['admins'][0]->email, array('class'=>'form-control email-validate', 'id'=>'email')) !!}
{{ trans('labels.EmailText') }}
{!! Form::checkbox('changePassword', 'yes', null, ['class' => '', 'id'=>'change-passowrd']) !!}
{!! Form::password('password', array('class'=>'form-control', 'id'=>'password')) !!}
{{ trans('labels.PasswordText') }}
{{ trans('labels.StatusText') }}