@extends('layouts.iconbar') @section('title') @lang('global.app_accountsetting') @endsection @section('breadcrumbs') {{ Breadcrumbs::render(\Request::route()->getName()) }} @endsection @section('content')
{!! Form::model($user, ['method' => 'PUT', 'route' => ['admin.account.setting.update', $user->id]]) !!}
{!! Form::text('company_name', old('company_name'), ['class' => 'form-control', 'placeholder' => '', 'required' => '']) !!} {!! Form::label('company_name', trans('global.users.fields.company-name').'*', ['class' => 'floating-label']) !!}

@if($errors->has('company_name'))

{{ $errors->first('company_name') }}

@endif
{!! Form::text('name', old('name'), ['class' => 'form-control', 'placeholder' => '', 'required' => '']) !!} {!! Form::label('name', trans('global.users.fields.name').'*', ['class' => 'floating-label']) !!}

@if($errors->has('name'))

{{ $errors->first('name') }}

@endif
{!! Form::text('last_name', old('last_name'), ['class' => 'form-control', 'placeholder' => '']) !!} {!! Form::label('last_name', trans('global.users.fields.last-name').'*', ['class' => 'floating-label']) !!}

@if($errors->has('last_name'))

{{ $errors->first('last_name') }}

@endif
{!! Form::email('email', old('email'), ['class' => 'form-control', 'placeholder' => '', 'required' => '']) !!} {!! Form::label('email', trans('global.users.fields.email').'*', ['class' => 'floating-label']) !!}

@if($errors->has('email'))

{{ $errors->first('email') }}

@endif
{!! Form::text('phone', old('phone'), ['class' => 'form-control', 'placeholder' => '']) !!} {!! Form::label('phone', trans('global.users.fields.phone').'', ['class' => 'floating-label']) !!}

@if($errors->has('phone'))

{{ $errors->first('phone') }}

@endif
{!! Form::text('mobile', old('mobile'), ['class' => 'form-control', 'placeholder' => '', 'required' => '']) !!} {!! Form::label('mobile', trans('global.users.fields.mobile').'', ['class' => 'floating-label']) !!}

@if($errors->has('mobile'))

{{ $errors->first('mobile') }}

@endif
{!! Form::text('address_address', old('address_address'), ['class' => 'form-control map-input', 'id' => 'address-input','placeholder' => '']) !!} {!! Form::label('address_address', trans('global.users.fields.address').'', ['class' => 'floating-label']) !!} {!! Form::hidden('address_latitude', 0 , ['id' => 'address-latitude']) !!} {!! Form::hidden('address_longitude', 0 , ['id' => 'address-longitude']) !!}

@if($errors->has('address'))

{{ $errors->first('address') }}

@endif
@if(!env('GOOGLE_MAPS_API_KEY')) 'GOOGLE_MAPS_API_KEY' is not set in the .env @endif

Enter (up to) three emails / phone numbers you would like notifications sent to

{!! Form::email('email2', old('email2'), ['class' => 'form-control', 'placeholder' => '']) !!} {!! Form::label('email2', trans('global.users.fields.email').'', ['class' => 'floating-label']) !!}

@if($errors->has('email2'))

{{ $errors->first('email2') }}

@endif
{!! Form::text('mobile2', old('mobile2'), ['class' => 'form-control', 'placeholder' => '']) !!} {!! Form::label('mobile2', trans('global.users.fields.mobile').'', ['class' => 'floating-label']) !!}

@if($errors->has('mobile2'))

{{ $errors->first('mobile2') }}

@endif
{!! Form::email('email3', old('email3'), ['class' => 'form-control', 'placeholder' => '']) !!} {!! Form::label('email3', trans('global.users.fields.email').'', ['class' => 'floating-label']) !!}

@if($errors->has('email3'))

{{ $errors->first('email3') }}

@endif
{!! Form::text('mobile3', old('mobile3'), ['class' => 'form-control', 'placeholder' => '']) !!} {!! Form::label('mobile3', trans('global.users.fields.mobile').'', ['class' => 'floating-label']) !!}

@if($errors->has('mobile3'))

{{ $errors->first('mobile3') }}

@endif
{!! Form::email('email4', old('email4'), ['class' => 'form-control', 'placeholder' => '']) !!} {!! Form::label('email4', trans('global.users.fields.email').'', ['class' => 'floating-label']) !!}

@if($errors->has('email4'))

{{ $errors->first('email4') }}

@endif
{!! Form::text('mobile4', old('mobile4'), ['class' => 'form-control', 'placeholder' => '']) !!} {!! Form::label('mobile4', trans('global.users.fields.mobile').'', ['class' => 'floating-label']) !!}

@if($errors->has('mobile4'))

{{ $errors->first('mobile4') }}

@endif
{!! Form::hidden('role[]', 3, old('role'), ['class' => 'form-control', 'required' => '']) !!} {!! Form::button(trans('global.app_save'), ['class' => 'btn btn-info', 'type' => 'submit']) !!} {!! Form::close() !!}

@lang('global.app_change_password')

{!! Form::open(['method' => 'PATCH', 'route' => ['admin.account.setting.changepassword']]) !!}
{!! Form::password('current_password', ['class' => 'form-control', 'placeholder' => '']) !!} {!! Form::label('current_password', trans('global.app_current_password'), ['class' => 'floating-label']) !!}

@if($errors->has('current_password'))

{{ $errors->first('current_password') }}

@endif
{!! Form::password('new_password', ['class' => 'form-control', 'placeholder' => '']) !!} {!! Form::label('new_password', trans('global.app_new_password'), ['class' => 'floating-label']) !!}

@if($errors->has('new_password'))

{{ $errors->first('new_password') }}

@endif
{!! Form::password('new_password_confirmation', ['class' => 'form-control', 'placeholder' => '']) !!} {!! Form::label('new_password_confirmation', trans('global.app_password_confirm'), ['class' => 'floating-label']) !!}

@if($errors->has('new_password_confirmation'))

{{ $errors->first('new_password_confirmation') }}

@endif
{!! Form::button(trans('global.app_save'), ['class' => 'btn btn-danger', 'type' => 'submit']) !!} {!! Form::close() !!}
@stop @section('javascript') @parent @stop