<div class="row">
     <div class="col-md-4 form-group">
       {{ Form::label('name_kh', Trans('customers.company_name_kh')) }} <span class="required">*</span>
       {{ Form::text('name_kh', null, [
         'class' => 'form-control',
         'placeholder' => Trans('customers.company_name_kh'),
       ]) }}
     </div>
     <div class="col-md-4 form-group">
       {{ Form::label('name_en', Trans('customers.company_name_en')) }} <span class="required">*</span>
       {{ Form::text('name_en', null, [
         'class' => 'form-control',
         'placeholder' => Trans('customers.company_name_en'),
       ]) }}
     </div>
     <div class="col-md-4 form-group">
         {{ Form::label('id_of_company', Trans('customers.company_id')) }} <span class="required">*</span>
         {{ Form::text('id_of_company', null, [
           'class' => 'form-control',
           'placeholder' => Trans('customers.company_id'),
         ]) }}
     </div>
</div>
<div class="row">
    <div class="col-md-12">
        <fieldset>
            <legend>{{ trans('customers.address') }}</legend>
           <div class="row">
               <div class="col-md-3 form-group">
                   {{ Form::label('house_number', Trans('customers.location.home_number')) }}
                   {{ Form::text('house_number', null, [
                     'class' => 'form-control',
                     'placeholder' => Trans('customers.location.home_number'),
                   ]) }}
               </div>
               <div class="col-md-3 form-group">
                   {{ Form::label('road_number', Trans('customers.location.road_number')) }}
                   {{ Form::text('road_number', null, [
                     'class' => 'form-control',
                     'placeholder' => Trans('customers.location.road_number'),
                   ]) }}
               </div>
               <div class="col-md-3 form-group">
                   {{ Form::label('group_number', Trans('customers.location.group_numner')) }}
                   {{ Form::text('group_number', null, [
                     'class' => 'form-control',
                     'placeholder' => Trans('customers.location.group_numner'),
                   ]) }}
               </div>
               <div class="col-md-3 form-group">
                   {{ Form::label('village', Trans('customers.location.village')) }}
                   {{ Form::text('village', null, [
                     'class' => 'form-control',
                     'placeholder' => Trans('customers.location.village'),
                   ]) }}
               </div>
           </div>
           <div class="row">
              <div class="col-md-4 form-group">
                  {{ Form::label('commune', Trans('customers.location.commune')) }}
                  {{ Form::text('commune', null, [
                    'class' => 'form-control',
                    'placeholder' => Trans('customers.location.commune'),
                  ]) }}
              </div>
              <div class="col-md-4 form-group">
                  {{ Form::label('district', Trans('customers.location.district')) }}
                  {{ Form::text('district', null, [
                    'class' => 'form-control',
                    'placeholder' => Trans('customers.location.district'),
                  ]) }}
              </div>
              <div class="col-md-4 form-group">
                  {{ Form::label('province', Trans('customers.location.province')) }}
                  {{ Form::text('province', null, [
                    'class' => 'form-control',
                    'placeholder' => Trans('customers.location.province'),
                  ]) }}
              </div>
           </div>
        </fieldset>
    </div>
</div>
<div class="row">
    <div class="col-md-3 form-group">
      {{ Form::label('company_tel', Trans('customers.company_tel')) }} <span class="required">*</span>
      {{ Form::text('company_tel', null, [
        'class' => 'form-control',
        'placeholder' => Trans('customers.company_tel'),
      ]) }}
    </div>
    <div class="col-md-3 form-group">
      {{ Form::label('contact_time', Trans('customers.contact_time')) }}
      {{ Form::text('contact_time', null, [
        'class' => 'form-control',
        'placeholder' => Trans('customers.contact_time'),
      ]) }}
    </div>
    <div class="col-md-3 form-group">
      {{ Form::label('company_email', Trans('customers.company_email')) }}
      {{ Form::text('company_email', null, [
        'class' => 'form-control',
        'placeholder' => Trans('customers.company_email'),
      ]) }}
    </div>
    <div class="col-md-3 form-group">
      {{ Form::label('ceo_section', Trans('customers.company_ceo')) }}
      {{ Form::text('ceo_section', null, [
        'class' => 'form-control',
        'placeholder' => Trans('customers.company_ceo'),
      ]) }}
    </div>
</div>
<div class="row">
    <div class="col-md-3 form-group">
        {{ Form::label('position', Trans('customers.company_position')) }}
        {{ Form::select('position', [
            'ceo' =>  trans('customers.position.ceo'),
            'manager' =>  trans('customers.position.manager'),
            'full_time' =>  trans('customers.position.full_time'),
            'part_time' =>  trans('customers.position.part_time'),
        ], null, ['class' => 'form-control select2']) }}
    </div>
    <div class="col-md-3 form-group">
        {{ Form::label('job_condition', Trans('customers.job_condition')) }}
        {{ Form::select('job_condition', [
            'always'      =>  trans('customers.job.always'),
            'sometime'    =>  trans('customers.job.sometime')
        ], null, ['class' => 'form-control select2']) }}
    </div>
    <div class="col-md-3 form-group">
        {{ Form::label('hired_date',Trans("customers.hired_date")) }}
        <div class="input-group date" >
        <?php $selected =  $loanCustomer->company->hired_date ? d_format($loanCustomer->company->hired_date) : null; ?>
            {{ Form::text('hired_date', $selected, [
                'class' => 'form-control',
                'id' => 'hired_date',
                'placeholder'    =>  trans('customers.hired_date')
            ]) }}
          <div class="input-group-addon">
              <i class="fa fa-calendar-o"></i>
          </div>
        </div>
    </div>
    <div class="col-md-3 form-group">
        <?php
        $company_types   =  [
            1     =>  "ក្រុមហ៊ុនសាធារណៈ",
            2     =>  "ក្រុមហ៊ុនឯកជន(បុគ្គលិក៥០នាក់ឡើង)",
            3     =>  "ក្រុមហ៊ុនឯកជន(បុគ្គលិកក្រោម៥០នាក់)",
            4     =>  "រោងចក្រ",
            5     =>  "សហគ្រាសរដ្ឋ",
            6     =>  "ក្រុមហ៊ុនផ្ទាលខ្លួន",
            7     =>  "ផ្នែកឯកទេស ពេទ្យ មេធាវី...។ល។",
            8     =>  "អង្គការ",
            9     =>  "មន្រ្តីរាជការ",
            10     =>  "ប្រកបអាជីវកម្មផ្ទាល់ខ្លួល",
            11     =>  "វិស័យកសិកម្ម",
            12     =>  "វិស័យអប់រំ",
            13     =>  "ផ្សេងៗ"
        ];
        ?>
        {{ Form::label('company_type', Trans('customers.company_type')) }}
        {{ Form::select('company_type',$company_types, null, ['class' => 'form-control select2']) }}
    </div>
</div>
<div class="row">
    <div class="col-md-3 form-group">
      {{ Form::label('salary', Trans('customers.salary')) }}
      {{ Form::number('salary', null, [
        'class' => 'form-control',
        'step'    =>  "any",
        'placeholder' => Trans('customers.salary'),
      ]) }}
    </div>
    <div class="col-md-3 form-group">
      {{ Form::label('other_salary', Trans('customers.other_salary')) }}
      {{ Form::number('other_salary', null, [
        'class' => 'form-control',
        'step'    =>  "any",
        'placeholder' => Trans('customers.other_salary'),
      ]) }}
    </div>
    <div class="col-md-3 form-group">
      {{ Form::label('total_salary', Trans('customers.total_salary')) }}
      {{ Form::number('total_salary', null, [
        'class' => 'form-control',
        'step'    =>  "any",
        'placeholder' => Trans('customers.total_salary'),
      ]) }}
    </div>
    <div class="col-md-3 form-group">
        {{ Form::label('day_of_salary', Trans('customers.day_of_salary')) }}
        {{ Form::selectRange('day_of_salary', 1, 31, null, ['class' => 'form-control select2']) }}
    </div>
</div>
