@extends('layouts.admin') @section('pageTitle') Best Insurance | Affiliates @stop @section('content')
{{Form::open(array('url' => '/account/branches/create-branch','id' => 'formValidation', 'method' => 'POST'))}}
* Password will be automatically generated and will be sent to given email.
@if(Auth::user()->role!=4)
{{Form::label('Select Affiliate Admin',array())}} {!!Form::select('affliate_admin', $affliate_admin, null, ['class' => 'form-control'])!!} @if($errors->has('affliate_admin')) @endif
@endif @if(Auth::user()->role=="4") @endif
{{Form::label('Branch Name',array())}} {{Form::text('branch_name','',array('required' => true,'class' =>'form-control'))}} @if($errors->has('branch_name')) @endif
{{Form::label('Branch code',array())}} {{Form::text('branch_code','',array('required' => true,'class' =>'form-control'))}} @if($errors->has('branch_code')) @endif
{{Form::label('Branch locality',array())}} {{Form::text('branch_locality','',array('required' => true,'class' =>'form-control'))}}
{{Form::label('Branch Address',array())}} {{Form::text('branch_address','',array('required' => true,'class' =>'form-control'))}}
{{Form::label('Manager Email',array())}} {{Form::email('branch_manager_email','',array('class' =>'form-control'))}} @if($errors->has('branch_manager_email')) @endif
{{Form::label('Manager Fullname',array())}} {{Form::text('branch_manager_full_name','',array('class' =>'form-control'))}} @if($errors->has('branch_manager_full_name')) @endif
{{Form::submit('Submit',array('class' => 'btn btn-success'))}}
{{Form::close()}}
@stop @section('pageBottomJs') @stop