@extends('themes.default1.agent.layout.agent') @section('Dashboard') class="nav-link active" @stop @section('dashboard-bar') active @stop @section('profile') class="nav-link active" @stop @section('PageHeader')

{{ Lang::get('lang.edit-profile') }}

@stop @section('content') @if (Session::has('success1'))
Success {{ Session::get('success1') }}
@endif @if (Session::has('fails1'))
Fail! {{ Session::get('fails1') }}
@endif @if (Session::has('success'))
Success {{ Session::get('success') }}
@endif @if (Session::has('fails'))
Fail! {{ Session::get('fails') }}
@endif @if (Session::has('errors'))
{!! Lang::get('lang.alert') !!}!
@if ($errors->first('first_name'))
  • {!! $errors->first('first_name', ':message') !!}
  • @endif @if ($errors->first('mobile'))
  • {!! $errors->first('mobile', ':message') !!}
  • @endif
    @endif
    {!! Form::model($user, [ 'url' => 'agent-profile', 'id' => 'agent-profile', 'method' => 'PATCH', 'files' => true, ]) !!}

    {!! Lang::get('lang.profile') !!}

    {!! Form::label('first_name', Lang::get('lang.first_name')) !!} * {!! Form::text('first_name', null, ['class' => 'form-control']) !!}
    {!! Form::label('last_name', Lang::get('lang.last_name')) !!} {!! Form::text('last_name', null, ['class' => 'form-control']) !!}
    {!! Form::label('gender', Lang::get('lang.gender')) !!}
    {!! Form::radio('gender', '1', true) !!} {{ Lang::get('lang.male') }}
    {!! Form::radio('gender', '0') !!} {{ Lang::get('lang.female') }}
    {!! Form::label('country_code', Lang::get('lang.country-code')) !!} {!! Form::text('country_code', null, [ 'class' => 'form-control', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code'), 'id' => 'code', ]) !!}
    {!! Form::label('phone_number', Lang::get('lang.phone')) !!} {!! Form::text('phone_number', null, ['class' => 'form-control']) !!}
    {!! Form::label('ext', Lang::get('lang.ext')) !!} {!! Form::text('ext', null, ['class' => 'form-control']) !!}
    {!! Form::label('mobile', Lang::get('lang.mobile_number')) !!} {!! Form::input('number', 'mobile', null, ['class' => 'form-control', 'id' => 'mobile']) !!}
    {!! Form::label('agent_sign', Lang::get('lang.agent_sign')) !!} {!! Form::textarea('agent_sign', null, ['class' => 'form-control']) !!}
    {!! Form::label('profile_pic', Lang::get('lang.profile_pic'), ['style' => 'font-weight:400;margin-bottom:0px;']) !!} {!! Form::file('profile_pic', ['class' => 'form-file']) !!}
    {!! Form::token() !!} {!! Form::close() !!}
    {!! Form::model($user, ['url' => 'agent-profile-password/' . $user->id, 'method' => 'PATCH']) !!}

    {!! Lang::get('lang.change_password') !!}

    {!! Form::label('old_password', Lang::get('lang.old_password')) !!} * {!! Form::password('old_password', ['class' => 'form-control']) !!} {!! $errors->first('old_password', ':message') !!}
    {!! Form::label('new_password', Lang::get('lang.new_password')) !!} * {!! Form::password('new_password', ['class' => 'form-control']) !!} {!! $errors->first('new_password', ':message') !!}
    {!! Form::label('confirm_password', Lang::get('lang.confirm_password')) !!} * {!! Form::password('confirm_password', ['class' => 'form-control']) !!} {!! $errors->first('confirm_password', ':message') !!}
    {!! Form::close() !!} @if ($verify == 1 || $verify == '1') @endif @stop