@extends('layouts/pos_layout') @section('title', '| Customer') @section('content')
Customer
{!! Form::open(array('url' => '' , 'enctype' => 'multipart/form-data', 'role' => 'form', 'class'=>'form-horizontal form-groups')) !!}
@if($is_incentive_type == 1)
{!! Form::label('reference_parent_customer_id', 'Reference Customer:', ['class' => 'col-sm-3 control-label']) !!}

@endif
{!! Form::label('customer_id_no', 'Customer Id:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('customer_id_no', $customer->customer_id_no, ['class' => 'form-control', 'id' => 'customer_id_no', 'type' => 'text', 'readonly' => true]) !!}

{!! Form::label('type', 'Type:', ['class' => 'col-sm-3 control-label']) !!}
Installment {!! Form::checkbox('installment', $value = null, ($customer->type == 'Installment') ? true : false, ['id' => 'installment']) !!} Cash {!! Form::checkbox('cash', $value = null, ($customer->type == 'Cash') ? true : false, ['id' => 'cash']) !!}

{!! Form::label('customer_name', 'Customer Name:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('customer_name', $customer->name, ['class' => 'form-control', 'id' => 'customer_name', 'type' => 'text', 'placeholder' => 'Enter Customer Name']) !!}

{!! Form::label('father_name', 'Father Name:', ['class' => 'col-sm-3 control-label', 'id' => 'father_name_label']) !!}
{!! Form::text('father_name', $customer->father_name, ['class' => 'form-control', 'id' => 'father_name', 'type' => 'text', 'placeholder' => 'Enter Father Name']) !!}

{!! Form::label('spouse_name', 'Spouse Name:', ['class' => 'col-sm-3 control-label', 'id' => 'spouse_name_label']) !!}
{!! Form::text('spouse_name', $customer->spouse_name, ['class' => 'form-control', 'id' => 'spouse_name', 'type' => 'text', 'placeholder' => 'Enter Spouse Name']) !!}

{!! Form::label('email', 'Email:', ['class' => 'col-sm-3 control-label', 'id' => 'email_label']) !!}
{!! Form::text('email', $customer->email, ['class' => 'form-control', 'id' => 'email', 'type' => 'text', 'placeholder' => 'Enter Customer Email']) !!}

{!! Form::label('mobile_no', 'Phone:', ['class' => 'col-sm-3 control-label', 'id' => 'mobile_no_label']) !!}
{!! Form::text('mobile_no', $customer->phone, ['class' => 'form-control', 'id' => 'mobile_no', 'type' => 'text', 'placeholder' => 'Enter Customer Phone No.']) !!}

Present Address:

{!! Form::label('present_division_id', 'Division:', ['class' => 'col-sm-3 control-label']) !!}

{!! Form::label('present_upazila_id', 'Upazila/Thana:', ['class' => 'col-sm-3 control-label']) !!}

{!! Form::label('present_village_id', 'Village:', ['class' => 'col-sm-3 control-label']) !!}

Permanent Address:

{!! Form::label('permanent_division_id', 'Division:', ['class' => 'col-sm-3 control-label']) !!}

{!! Form::label('permanent_upazila_id', 'Upazila/Thana:', ['class' => 'col-sm-3 control-label']) !!}

{!! Form::label('permanent_village_id', 'Village:', ['class' => 'col-sm-3 control-label']) !!}

{!! Form::label('image_path', 'Upload Image:', ['class' => 'col-sm-4 control-label', 'id' => 'image_path_label']) !!}
{!! Form::file('image_path', $value = null, ['class' => 'form-control', 'id' => 'image_path', 'type' => 'file']) !!}

{!! Form::label('branch_id', 'Branch:*', ['class' => 'col-sm-3 control-label']) !!}

{!! Form::label('national_id', 'National Id:', ['class' => 'col-sm-3 control-label', 'id' => 'national_id_label']) !!}
{!! Form::text('national_id', $customer->national_id, ['class' => 'form-control', 'id' => 'national_id', 'type' => 'text', 'placeholder' => 'Enter Customer National Id.']) !!}

{!! Form::label('date_of_birth', 'Date Of Birth', ['class' => 'col-sm-3 control-label', 'id' => 'date_of_birth_label']) !!}
{!! Form::text('date_of_birth', date('d-m-Y', strtotime($customer->date_of_birth)), ['class' => 'form-control', 'style'=>'cursor:pointer', 'id' => 'date_of_birth', 'type' => 'text', 'placeholder' => 'Select Customer Date of Birth', 'readonly' => true]) !!}

{!! Form::label('marital_status', 'Marital Status:', ['class' => 'col-sm-3 control-label']) !!}
Single {!! Form::checkbox('single_status', $value = null, ($customer->marital_status == 'Single') ? true : false, ['id' => 'single']) !!} Married {!! Form::checkbox('married_status', $value = null, ($customer->marital_status == 'Married') ? true : false, ['id' => 'married']) !!}

{!! Form::label('yearly_income', 'Yearly Income:', ['class' => 'col-sm-3 control-label', 'id' => 'yearly_income_label']) !!}
{!! Form::number('yearly_income', $customer->yearly_income, ['class' => 'form-control', 'id' => 'yearly_income', 'type' => 'text', 'min' => 0, 'placeholder' => 'Enter Customer Yearly Income']) !!}

{!! Form::label('description', 'Description:', ['class' => 'col-sm-3 control-label', 'id' => 'description_label']) !!}
{!! Form::textarea('description', $customer->description, ['class' => 'form-control', 'id' => 'description', 'type' => 'text', 'rows' => '4', 'placeholder' => 'Enter Customer Description']) !!}



{!! Form::label('present_district_id', 'District:', ['class' => 'col-sm-3 control-label']) !!}

{!! Form::label('present_union_id', 'Union:', ['class' => 'col-sm-3 control-label']) !!}

{!! Form::label('present_remark', 'Remarks:', ['class' => 'col-sm-3 control-label', 'id' => 'present_remark_label']) !!}
{!! Form::textarea('present_remark', $customer->present_remark, array('class'=>'form-control', 'id' => 'present_remark', 'rows' => 4, 'placeholder' => 'Enter Remarks')) !!}

{!! Form::label('permanent_district_id', 'District:', ['class' => 'col-sm-3 control-label']) !!}

{!! Form::label('permanent_union_id', 'Union:', ['class' => 'col-sm-3 control-label']) !!}

{!! Form::label('permanent_remark', 'Remarks:', ['class' => 'col-sm-3 control-label', 'id' => 'permanent_remark_label']) !!}
{!! Form::textarea('permanent_remark', $customer->permanent_remark, array('class'=>'form-control', 'id' => 'permanent_remark', 'rows' => 4, 'placeholder' => 'Enter Remark')) !!}

{!! Form::label('Update', ' ', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::submit('Update', ['id' => 'add', 'class' => 'btn btn-info']); !!} Close
{!! Form::close() !!}
@endsection