@extends('layouts.master') @section('title', 'PetroERP- An ERP for Petrol Pumps') @section('content')
SMS Format

Update SMS Format

{!! Form::open(['action' => ['PumpSmsFormatsController@update', $format->id], 'method' => 'POST', 'class' => 'form-horizontal space-top','data-parsley-validate']) !!}
{{Form::label('format', 'Module Type', ['class'=>'col-md-2'])}}
: @if($format->moduleType == 1) Credit Sales @elseif($format->moduelType == 2) Loyalty Sale @else Others @endif
{{Form::label('format', 'Transaction', ['class'=>'col-md-2'])}}
: {{$format->name}}
{{Form::label('format', 'SMS Format', ['class'=>'col-md-2'])}}
{{Form::textarea('format', $format->oldFormat, ['class'=>'form-control format', 'cols'=>'5', 'rows'=>'100', 'style'=>'height:150px;width:700px;', 'readonly','placeholder'=>'SMS Format'])}}
{{Form::label('format', 'Required Field', ['class'=>'col-md-2'])}}
@for($i=0; $i<$requiredCount; $i++) {{ $requiredField[$i] }}
@endfor
{{Form::label('format', 'If No change', ['class'=>'col-md-2'])}}
{{Form::label('format', 'SMS Format', ['class'=>'col-md-2'])}}
{{Form::textarea('newFormat', $format->newFormat, ['class'=>'form-control newFormat', 'cols'=>'5', 'rows'=>'100', 'style'=>'height:150px;width:700px;', 'placeholder'=>'Your SMS Format'])}}
{{Form::hidden('_method', 'PUT')}} {{Form::submit('Update', ['class'=>'btn btn-primary'])}} {{Form::reset('Reset', ['class'=>'btn btn-primary'])}}
{!! Form::close() !!}
@endsection