@extends('layouts.admin') @section('pageTitle') Best Insurance | Broker @stop @section('content')
{{Form::open(array('url' => '/account/brokers/edit-broker/'.$broker->id,'id' => 'formValidation', 'method' => 'POST'))}}
* Password will be automatically generated and will be sent to given email.
{{Form::label('Select Affliate Admin',array())}} {!!Form::select('affliate_admin', $affliate_admin, $broker->user_affliate_ho_id, ['class' => 'form-control','id'=>'affliate_admin','readonly'])!!} @if($errors->has('affliate_admin')) @endif
{{Form::label('Branch',array())}} {!!Form::select('branch', [], null, ['class' => 'form-control','id'=>'branches','readonly'])!!} @if($errors->has('branch')) @endif
{{Form::label('First Name',array())}} @if(!empty($broker->profile)) {{Form::text('first_name',$broker->profile->first_name,array('required' => true,'class' =>'form-control'))}} @else {{Form::text('first_name','',array('required' => true,'class' =>'form-control'))}} @endif @if($errors->has('first_name')) @endif
{{Form::label('Last Name',array())}} @if(!empty($broker->profile)) {{Form::text('last_name',$broker->profile->last_name,array('required' => true,'class' =>'form-control'))}} @else {{Form::text('last_name','',array('required' => true,'class' =>'form-control'))}} @endif @if($errors->has('last_name')) @endif
{{Form::label('Email',array())}} {{Form::email('email',$broker->email,array('class' =>'form-control'))}} @if($errors->has('email')) @endif
{{Form::submit('Submit',array('class' => 'btn btn-success'))}}
{{Form::close()}}
@stop @section('pageBottomJs') @stop