@extends('_version_02.commons.layouts.admin') @section('content') @include('_version_02.commons.layouts.partials._alert') @include('_version_02.billings.ar_payment_receiveds.partials._hidden_variable') @include('_version_02.billings.ar_payment_receiveds.partials._add_new_member_modal')
{!! Form::model($model, ['class'=>'form-horizontal','id'=>'membership-application-form']) !!}

Membership Renewal

Membership Renewal Application

{!!Form::select('product_id', App\Product::membership_combobox(), isset($leaf_product_id) ? $leaf_product_id : null , ['class'=>'form-control','onchange'=>'init_membership_info_by_leaf_product_id(this, "sales")'])!!}
{!!$errors->first('product_id', '')!!}

Annual fee : RM

Membership renewal application require staff to verify.

Email will be sent once application is approved , you can get your mobile apps for latest information.

{!! Form::select('country_id', App\Country::combobox(), null, ['class'=>'form-control','onchange'=>'init_state_selectbox(this)']) !!} {!!$errors->first('country_id', '')!!}
{!! Form::select('state_id', App\State::combobox(old('country_id') ? old('country_id'):$model->country_id), null, ['class'=>'form-control','onchange'=>'init_city_selectbox(this)']) !!} {!!$errors->first('state_id', '')!!}
{!! Form::select('city_id', App\City::combobox(old('state_id') ? old('state_id'):$model->state_id), null, ['class'=>'form-control']) !!} {!!$errors->first('city_id', '')!!}

Review Application

Members

@if(isset($membership['id'])) @foreach($membership->items as $member) @endforeach @endif @php $leaf_api = new App\LeafAPI(); if($membership != false && isset($membership['leaf_product_id'])){ $fee_type = $leaf_api->get_single_fee_type($membership['leaf_product_id']); } $remaining_slot = isset($fee_type['fee_type_user_per_unit']) ? ($fee_type['fee_type_user_per_unit'] - ( isset($membership['id']) ? count($membership->items) : 0 )) : 0; @endphp @for($i=0 ; $i < $remaining_slot ; $i++ ) @endfor
Image Name Identity Card No. Email Action
icon {{$member['name']}} {{$member['ic']}} {{$member['email']}}
Summary [RM]
Sub Total {{$model['amount']}}
Discount -
Tax -
To Pay {{$model['amount']}}

Summary

Application Summary

Sub Total {{$model['amount']}}
Tax -
Paid {{$model['amount']}}

Please double check your application , confirmation email will be sent after verification , please proceed to payment after this.

{!! Form::close() !!}
@endsection @section('script') var productInfoByLeafProductIdUrl = "{{action('ProductsController@getInfoByLeafProductId')}}"; function init_membership_info_by_leaf_product_id(me, type) { $.get(productInfoByLeafProductIdUrl, {product_id:$(me).val()}, function(fdata){ product = fdata.data; leaf_product = product.leaf_product_model; console.log(product); //$('#lbl_product_name').html(product.description); $('#lbl_product_amount').html(product.amount); $('#summary_total_amount').html(product.amount); $('#btn_payment').html('Pay '+product.amount); $('#summary_sub_total').html(product.amount); $('#summary_total').html(product.amount); $('#member_payable_amount').html(product.amount); $('#member_sub_total').html(product.amount); $('#').val(leaf_product.fee_type_user_per_unit); $('#').val(leaf_product.fee_type_user_min_age); $('#').val(leaf_product.fee_type_user_max_age); },"json"); } function checkc bn_member_table(table_id,slot){ } @endsection