@extends('layouts/acc_layout') @section('title', '| FDR Register') @section('content')
FDR Register
{!! Form::open(array('url' => 'storefdrRegisterAccount','id'=>'entryForm', 'role' => 'form', 'class'=>'form-horizontal form-groups')) !!}
{!! Form::label('fdrId', 'FDR ID:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('fdrId', $fdrId, ['class'=>'form-control', 'id' => 'fdrId','readonly']) !!}
{!! Form::label('fdrType', 'FDR Type:', ['class' => 'col-sm-3 control-label']) !!}
@php $fdrTypeList = array(''=>'Select FDR Type') + DB::table('acc_fdr_type')->pluck('name','id')->toArray(); @endphp {!! Form::select('fdrType',$fdrTypeList ,null, ['class'=>'form-control', 'id' => 'fdrType']) !!}

{!! Form::label('accNo', 'FDR No:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('accNo', null, ['class'=>'form-control', 'id' => 'accNo']) !!}

{!! Form::label('accName', 'Account Name:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('accName', null, ['class'=>'form-control', 'id' => 'accName']) !!}

{!! Form::label('project', 'Project:', ['class' => 'col-sm-3 control-label']) !!}
@php $projects = DB::table('gnr_project')->select('id','name','projectCode')->get(); @endphp

{!! Form::label('projectType', 'Project Type:', ['class' => 'col-sm-3 control-label']) !!}
@php $projectTypes = DB::table('gnr_project_type')->select('id','name','projectTypeCode')->get(); @endphp

{!! Form::label('branch', 'Branch:', ['class' => 'col-sm-3 control-label']) !!}
@php $branches = DB::table('gnr_branch')->where('id',1)->select('id','name','branchCode')->get(); @endphp

{{-- End of 1st coloum --}}
{!! Form::label('bankName', 'Bank:', ['class' => 'col-sm-3 control-label']) !!}
@php $bankList = array(''=>'Select Bank') + DB::table('gnr_bank')->pluck('name','id')->toArray(); @endphp {!! Form::select('bank', $bankList,null, ['class'=>'form-control custom-select2', 'id' => 'bank']) !!}

{!! Form::label('bankBranch', 'Bank Branch Location:', ['class' => 'col-sm-3 control-label']) !!}
@php $bankBranchList = DB::table('gnr_bank_branch')->select('name','id','bankId_fk')->get(); @endphp

{!! Form::label('principalAmount', 'Principal Amount:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('principalAmount', null, ['class'=>'form-control', 'id' => 'principalAmount']) !!}

{!! Form::label('interestRate', 'Interest Rate:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('interestRate' ,null, ['class'=>'form-control', 'id' => 'interestRate']) !!}

{!! Form::label('openingDate', 'Opening Date:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('openingDate', null, ['class'=>'form-control', 'id' => 'openingDate','readonly','style'=>'cursor:pointer']) !!}

{!! Form::label('duration', 'Duration (Months):', ['class' => 'col-sm-3 control-label']) !!}
@php $monthArray = array(''=>'Select Duration','1'=>'1 month','2'=>'2 months','3'=>'3 months','4'=>'4 months','5'=>'5 months','6'=>'6 months','7'=>'7 months','8'=>'8 months','9'=>'9 months','10'=>'10 months','11'=>'11 months','12'=>'12 months'); @endphp {!! Form::select('duration', $monthArray,null, ['class'=>'form-control', 'id' => 'duration']) !!}

{!! Form::label('matureDate', 'Mature Date:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('matureDate', null, ['class'=>'form-control', 'id' => 'matureDate','readonly']) !!}
{{-- End of 2nd coloum --}}
{!! Form::submit('Submit', ['id' => 'save', 'class' => 'btn btn-info','type'=>'button']) !!} Close
{!! Form::close() !!}