@extends('layouts.master')
@section('page_title')
    @if(isset($page_title))
        {{ $page_title }}
    @endif
@endsection
@section('content')
  <div class="">
    <div class="page-title">
      <div class="title_left" style="width:800px !important;">
        <ol class="breadcrumb">
          <li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
          <li class="active">Create Account</li>
        </ol>
      </div>
    </div>
    <div class="clearfix"></div>
      <div class="row">
        <div class="col-md-10 col-sm-10 col-xs-12">
          <div class="x_panel">
              <div class="x_title">
                @include('commons.notifications')
                <div class="clearfix"></div>
              </div>
                {{-- start of content --}}
                <div class="x_content">
                  <br>
                      {!! Form::model($account_arr, [
                          'method' => 'PATCH',
                          'url' => ['accountmanagers', $account_arr],
                          'class' => 'form-horizontal form-label-left'
                      ]) !!}
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Name</label>
                        <div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('name') ? 'has-error' : ''}}">
                          {!! Form::text('name', old('name'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter name' , 'id' => 'name']) !!}
                          {!! $errors->first('name', '<p class="help-block">:message</p>') !!}
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="type">Designation</label>
                        <div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('service_type') ? 'has-error' : ''}}">
                          {!! Form::select('designation', $designation ,old('designation'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter designation ' , 'id' => 'designation']) !!}
                          {!! $errors->first('designation', '<p class="help-block">:message</p>') !!}
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="email">Email</label>
                        <div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('email') ? 'has-error' : ''}}">
                          {!! Form::email('email', old('email'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter name' , 'id' => 'email']) !!}
                          {!! $errors->first('email', '<p class="help-block">:message</p>') !!}
                        </div>
                      </div>
                      
                      <!-- <hr> -->
                      <!-- <p class="text-center">Leave password blank to keep the current password</p> -->
                      <!-- <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="password">Password</label>
                        <div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('passwword') ? 'has-error' : ''}}">
                          {!! Form::text('password', null, ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter password' , 'id' => 'password']) !!}
                          {!! $errors->first('password', '<p class="help-block">:message</p>') !!}
                        </div>
                      </div> -->
                      <!-- <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="confirm_password">Confirm Password</label>
                        <div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('confirm_password') ? 'has-error' : ''}}">
                          {!! Form::text('confirm_password', null, ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Re-enter Password' , 'id' => 'confirm_password']) !!}
                          {!! $errors->first('confirm_password', '<p class="help-block">:message</p>') !!}
                        </div>
                      </div> -->
                      <div class="ln_solid"></div>
                      <div class="form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                          <button type="submit" class="btn btn-success btn-block"><i class="fa fa-save"></i> Submit</button>
                        </div>
                      </div>
                  {!! Form::close() !!}
                </div>
                {{-- end of x_content --}}
              </div>
              {{-- end of x_panel --}}
            </div>
          </div>
          
        </div>

@endsection

@section('javascript')
<script type="text/javascript">
  $(function(){
    $('select').select2();

  });
</script>
@endsection
