@extends('layouts/microfin_layout') @section('title', '| Add Deposit') @section('content') @php use \App\Http\Controllers\microfin\savings\MfnSavingsDepositTypeController as createForm; @endphp
New Deposit
{!! Form::open(array('url' => '', 'role' => 'forl', 'id' => 'rootwizard', 'class' => 'form-horizontal form-groups', 'novalidate' => '')) !!} {{--
--}}
{{--
Member
--}}
{!! Form::hidden('memberId',null,['id'=>'memberId']) !!} {!! Form::hidden('branchId',null,['id'=>'branchId']) !!} {!! Form::hidden('samityId',null,['id'=>'samityId']) !!} {!! Form::hidden('workingAreaId',null,['id'=>'workingAreaId']) !!} {!! createForm::text('member','','Member:',['id'=>'member','autocomplete'=>'off']) !!} {!! createForm::select('savingsCode',[''=>'Select'],null,'Savings Code:',['id'=>'savingsCode','autocomplete'=>'off']) !!} {!! createForm::text('transactionDate',null,'Transaction Date:',['id'=>'transactionDate','autocomplete'=>'off','readonly'=>'readonly','style'=>'cursor:pointer']) !!} {!! createForm::select('paymentMode',['Cash'=>'Cash','Bank'=>'Bank'],null,'Mode of Payment:',['id'=>'paymentMode','autocomplete'=>'off']) !!}
{!! Form::label('bank', 'Bank:', ['class' => 'col-sm-4 control-label']) !!}
{!! createForm::text('chequeNumber','','Cheque Number:',['id'=>'chequeNumber','autocomplete'=>'off']) !!}
{!! createForm::text('amount','','Amount:',['id'=>'amount','autocomplete'=>'off']) !!} {{-- -------------------//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////---------------------------------- --}} @if($moneyRecNoType == 'manual') {!! createForm::text('moneyRecNo','','Money Receipt No:',['id'=>'moneyRecNo','autocomplete'=>'off']) !!} @endif {{-- --------------------------/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--------------------------- --}}
{{-- End First Column --}} {{-- Second Coloum --}}
{!! createForm::text('authorizedDeposit','','Authorized Deposit:',['id'=>'authorizedDeposit','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! createForm::text('unauthorizedDeposit','','Unauthorized Deposit:',['id'=>'unauthorizedDeposit','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! createForm::text('totalDeposit','','Total Deposit:',['id'=>'totalDeposit','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! createForm::text('authorizedWithdraw','','Authorized Withdraw:',['id'=>'authorizedWithdraw','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! createForm::text('unauthorizedWithdraw','','Unauthorized Withdraw:',['id'=>'unauthorizedWithdraw','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! createForm::text('totalWithdraw','','Total Withdraw:',['id'=>'totalWithdraw','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! createForm::text('balance','','Balance:',['id'=>'balance','autocomplete'=>'off','readonly'=>'readonly']) !!}
{{-- End Second Coloum --}}
    {!! Form::submit('Submit', ['id' => 'submit', 'class' => 'btn btn-info']) !!} {!! Form::submit('Submit & Continue', ['id' => 'submitAndContinue', 'class' => 'btn btn-info']) !!} {{-- -----------------------////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////-------------------------- --}} @if($isMoneyReceiptPrintAllow == 1) {!! Form::submit('Submit & Print', ['id' => 'submitAndPrint', 'class' => 'btn btn-info']) !!} @endif {{-- --------------------------////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////----------------------- --}}
{!! Form::close() !!}
{{-- changed for api--}} {{-- take member branch samity working area list to the controller --}} {{-- @php $userBranchId = Auth::user()->branchId; $members = DB::table('mfn_member_information') ->where('softDel',0) ->where('status',1) ->where('branchId',$userBranchId) ->where('admissionDate','<=',$softDate) // ->select('id','name','code','branchId','samityId') ->selectRaw('id, name, case when oldMemberCode = "" then code else concat(code, " [ ", oldMemberCode, " ]") end as code, branchId, samityId') ->get(); @endphp --}} {{-- chaned end --}} @endsection