@extends('layouts.master') @section('title') {{translate('edit borrower')}} @endsection @section('content')
{{translate('edit borrower')}}
{!! Form::open(array('url' => url('borrower/'.$borrower->id.'/update'), 'method' => 'post', 'name' => 'form',"enctype"=>"multipart/form-data")) !!}
{!! Form::label('first_name',translate('first_name')." *",array('class'=>'')) !!} {!! Form::text('first_name',$borrower->first_name, array('class' => 'form-control', 'placeholder'=>translate('first_name'),'required'=>'required')) !!}
{!! Form::label('last_name',translate('last_name')." *",array('class'=>'')) !!} {!! Form::text('last_name',$borrower->last_name, array('class' => 'form-control', 'placeholder'=>translate('last_name'),'required'=>'required')) !!}
{!! Form::label('gender',translate('gender')." *",array('class'=>'')) !!} {!! Form::select('gender',array('Male'=>translate('male'),'Female'=>translate('female')),$borrower->gender, array('class' => 'form-control','required'=>'required')) !!}
{!! Form::label('unique_number',translate('unique_number'),array('class'=>'')) !!} {!! Form::text('unique_number',$borrower->unique_number, array('class' => 'form-control', 'placeholder'=>translate('unique_number'))) !!}
{!! Form::label('email',translate('email'),array('class'=>'')) !!} {!! Form::text('email',$borrower->email, array('class' => 'form-control', 'placeholder'=>translate('email'))) !!}
{!! Form::label('dob',translate('dob'),array('class'=>'')) !!} {!! Form::text('dob',$borrower->dob, array('class' => 'form-control date-picker', 'placeholder'=>"yyyy-mm-dd")) !!}
{!! Form::label('phone',translate('phone'),array('class'=>'')) !!} {!! Form::text('phone',$borrower->phone, array('class' => 'form-control', 'placeholder'=>"")) !!}
{!! Form::label('address',translate('address'),array('class'=>'')) !!} {!! Form::text('address',$borrower->address, array('class' => 'form-control', 'placeholder'=>"")) !!}
{!! Form::label('business_name',translate('business'),array('class'=>'')) !!} {!! Form::text('business_name',$borrower->business_name, array('class' => 'form-control', 'placeholder'=>"")) !!}
{!! Form::label('working_status',translate('working_status'),array('class'=>'')) !!} {!! Form::select('working_status',array('Employee'=>translate('Employee'),'Owner'=>translate('Owner'),'Student'=>translate('Student'),'Overseas Worker'=>translate('Overseas Worker'),'Pensioner'=>translate('Pensioner'),'Unemployed'=>translate('Unemployed')),$borrower->working_status, array('class' => 'form-control',)) !!}
{!! Form::label('id_card_number',translate('id_card_number'),array('class'=>'')) !!} {!! Form::text('id_card_number',$borrower->id_card_number, array('class' => 'form-control', 'placeholder'=>translate('id_card_number'))) !!}
{!! Form::label('place_of_birth',translate('place_of_birth'),array('class'=>'')) !!} {!! Form::text('place_of_birth',$borrower->place_of_birth, array('class' => 'form-control', 'placeholder'=>"")) !!}
{!! Form::label('photo',translate('photo'),array('class'=>'')) !!} {!! Form::file('photo', array('class' => 'form-control', 'placeholder'=>"")) !!} @if(!empty($borrower->photo)) @endif
{!! Form::label('files',translate('file'). ' '.translate('borrower_file_types'),array('class'=>'')) !!} {!! Form::file('files[]', array('class' => 'form-control', 'multiple'=>"")) !!} @foreach(unserialize($borrower->files) as $key=>$value) {!! $value!!}
@endforeach
{!! Form::label('notes',translate('description'),array('class'=>'')) !!} {!! Form::textarea('notes',$borrower->notes, array('class' => 'form-control', 'placeholder'=>"",'rows'=>'3')) !!}
{!! Form::close() !!}
@endsection @section('footer-scripts') @endsection