@extends('layouts.master') @section('title', 'PetroERP- An ERP for Petrol Pumps') @section('content') SMS and Notification Template Basic Settings SMS Template Active List Deactive List Update Template {!! Form::open(['action' => ['SMSTemplatesController@update', $template->id], 'method' => 'POST', 'class' => 'form-horizontal space-top','data-parsley-validate']) !!} {{Form::label('action', 'Action', ['class'=>'required col-md-2'])}} {{Form::text('action', $template->action, ['class'=>'form-control', 'placeholder'=>'Action', 'required'])}} {{Form::label('sendTo', 'Send To', ['class'=>'required col-md-2'])}} {{Form::text('sendTo', $template->sendTo, ['class'=>'form-control', 'placeholder'=>'SMS Send To', 'required'])}} {{Form::label('description', 'Description', ['class'=>'required col-md-2'])}} {!! Form::textarea('description', $template->description, ['class' => 'form-control', 'cols' => 20, 'rows' =>10, 'style'=>'height: 200px;', 'required']) !!} {{Form::label('langType', 'Language', ['class'=>'required col-md-2'])}} {{Form::select('langType', ['1'=>'English', '2'=>'Hindi'],$template->langType, ['class'=>'form-control','placeholder' => 'Pick a Language...', 'id'=>'countryId', 'readonly', 'required'])}} {{Form::label('compalsaryOpt', 'Compulsory Option', ['class'=>'required col-md-2'])}} {{Form::select('compalsaryOpt', ['1'=>'No', '2'=>'Yes'], $template->compalsaryOpt, ['placeholder'=>'Select Compulsory Option','class'=>'form-control','required'])}} {{Form::label('smsType', 'SMS Type', ['class'=>'required col-md-2'])}} {{Form::text('smsType', $template->smsType, ['class'=>'form-control', 'placeholder'=>'SMS Type', 'required'])}} {{Form::label('alertType', 'Alert Type', ['class'=>'required col-md-2'])}} {{Form::select('alertType', ['1'=>'Text SMS', '2'=>'App Notification','3'=>'Whatsapp SMS'], $template->alertType, ['placeholder'=>'Select Alert Type','class'=>'form-control','required'])}} {{Form::hidden('_method', 'PUT')}} {{Form::submit('Submit', ['class'=>'btn btn-success'])}} {{Form::reset('Reset', ['class'=>'btn btn-danger'])}} {!! Form::close() !!} @endsection