@extends('layouts/gnr_layout') @section('title', '| Configure SMS Service') @section('content') {{-- template --}}
{{-- fullbody start --}}
{{-- title --}} {{-- title end --}} {{-- panel start --}}
SMS Service Configuration
{{-- form start --}}
{!! Form::open(array('url' => '', 'id' => 'dataForm', 'role' => 'form', 'class'=>'form-horizontal form-groups')) !!}
{{-- Provider --}}
{!! Form::label('selectedProvider', 'SMS Provider:', ['class' => 'control-label']) !!}
{!! Form::select( 'selectedProvider', array('' => 'Select') + ($providers), $config['providerId'], array( 'class'=>'form-control', 'id' => 'selectedProvider', 'required' => 'required' )) !!}
{{-- Language Options --}}
{!! Form::label('languageOptions', 'Text Language:', ['class' => 'control-label']) !!}
{!! Form::select('languageOptions', ($languageOptions), $config['language'], array('class'=>'form-control', 'id' => 'languageOptions')) !!}
{{-- Back Date SMS Send --}}
{!! Form::label('backDateSmsOptions', 'Send Back Date SMS:', ['class' => 'control-label']) !!}
{!! Form::select('sendBackDateSms', ($backDateSmsOptions), $config['sendBackDateSms'], array('class'=>'form-control', 'id' => 'sendBackDateSms')) !!}
{{-- SMS Events --}}
{!! Form::label('selectedEvents', 'Send SMS For:', ['class' => 'col-sm-3 control-label']) !!}
@foreach($events as $eventKey => $event) @php $isInConfig = in_array( $eventKey, json_decode($config['events']) ); @endphp
@endforeach
{{-- SMS Contents --}}
{!! Form::label('smsContent', 'SMS Content:', ['class' => 'col-sm-3 control-label']) !!}
@foreach(array_keys($events) as $e) @foreach($languageOptions as $l)
@endforeach @endforeach
{{-- Eligible Savings Products --}}
{!! Form::label('selectedSavingsProducts', 'Eligible Savings Products:', ['class' => 'col-sm-3 control-label']) !!}
@foreach($savingsProducts as $id => $product)
@endforeach
{{-- Savings Products For Grouping --}}
{!! Form::label('selectedSavingsProductsForGrouping', 'Group Savings Products:', ['class' => 'col-sm-3 control-label']) !!}
@foreach($savingsProducts as $id => $product)
@endforeach
{{-- No. of SMS from Auto Process --}}
{{-- Schedule Reminder Days --}}
{!! Form::label('upcomingScheduleReminder', 'Loan Schedule Reminder (in Days):', ['class' => 'col-sm-3 control-label']) !!}
@foreach($loanRepayFrequency as $name)
@endforeach
{{-- SMS Sending Time --}}
{!! Form::label('submit', ' ', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::submit('Submit', ['id' => 'add', 'class' => 'btn btn-info']); !!} Close
{!! Form::close() !!}
{{-- form end --}}
{{-- panel end --}}
{{-- fullbody end --}}
{{-- template end --}} @endsection {{-- scripts --}}