@extends('layouts/microfin_layout') @section('title', '| Add Sell') @section('content') @php use \App\Http\Controllers\microfin\savings\MfnSavingsDepositTypeController as createForm; $userBranchId = Auth::user()->branchId; @endphp
New Share Sale
{!! Form::open(array('url' => '', 'role' => 'forl', 'id' => 'rootwizard', 'class' => 'form-horizontal form-groups')) !!}
{!! Form::hidden('memberId',isset($shareSell->member_id)?$shareSell->member_id : '',['id'=>'memberId']) !!} {!! Form::hidden('branchId',$shareSell->branch_id ?? '',['id'=>'branchId']) !!} {!! Form::hidden('samityId',$shareSell->samity_id ?? '',['id'=>'samityId']) !!} {!! Form::hidden('workingAreaId',null,['id'=>'workingAreaId']) !!} {{-- {!! Form::hidden('shareMaxValue',floor(($getSellTotalShareMember->max_num_of_share)) ? '',['id'=>'shareMaxValue']) !!} {!! Form::hidden('shareMinValue',isset(floor($getSellTotalShareMember->min_num_of_share))? floor($getSellTotalShareMember->min_num_of_share) : '' ,['id --}}
@if(!in_array($userRoleId, Config('services.branch_level_user_roles'))) {!! createForm::select('branch', $branchList,$shareSell->branch_id ?? '','Branch:',['id'=>'branch']) !!} @endif {!! createForm::select('samity',$samityList,$shareSell->samity_id ?? '','Samity:',['id'=>'samity']) !!} {{-- {!! createForm::text('member','','Member:',['id'=>'member','autocomplete'=>'off']) !!} --}}

{!! createForm::text('pre_sell_share','','Previous Sell share:',['id'=>'pre_sell_share','readonly'=>'readonly']) !!}

{{-- --}}

    {!! Form::submit('Submit', ['id' => 'submit', 'class' => 'btn btn-info']) !!}
{{-- End First Column --}} {{-- Second Coloum --}} {{-- End Second Coloum --}}
{!! Form::close() !!}
@php $members = DB::table('mfn_member_information')->where('softDel',0)->where('status',1)->where('branchId',$userBranchId)->where('admissionDate','<=',$softwareDate)->select('id','name','code','branchId','samityId')->get(); $branches = DB::table('gnr_branch')->select('id','name')->get(); $samities = DB::table('mfn_samity')->select('id','name','workingAreaId')->get(); $workingAreas = DB::table('gnr_working_area')->select('id','name')->get(); @endphp @endsection