@extends('admin.layouts.app')
@section('title')
@lang('SMS Controls')
@endsection
@push('style-lib')
@endpush
@section('content')
| @lang('SHORTCODE') |
@lang('DESCRIPTION') |
[[receiver]]
|
User Contact Number |
[[message]]
|
Receiver Message |
@php
if (old()){
$headerData = array_combine(old('headerDataKeys'),old('headerDataValues'));
$paramData = array_combine(old('paramKeys'),old('paramValues'));
$formData = array_combine(old('formDataKeys'),old('formDataValues'));
$headerData = (empty(array_filter($headerData))) ? null : json_encode($headerData);
$paramData = (empty(array_filter($paramData))) ? null : json_encode($paramData);
$formData = (empty(array_filter($formData))) ? null : json_encode($formData);
} else {
$headerData = $smsControl->headerData;
$paramData = $smsControl->paramData;
$formData = $smsControl->formData;
}
$headerActive = false;
$paramActive = false;
$formActive = false;
if ($errors->has('headerDataKeys.*') || $errors->has('headerDataValues.*')) {
$headerActive = true;
}elseif ($errors->has('paramKeys.*') || $errors->has('paramValues.*')) {
$paramActive = true;
} elseif ($errors->has('formDataKeys.*') || $errors->has('formDataValues.*')) {
$formActive = true;
} else {
$headerActive = true;
}
@endphp
@endsection
@push('js-lib')
@endpush
@push('js')
@endpush