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

Pump Modules

{!! Form::open(['action' => 'PumpsController@getPumpModules', 'method' => 'GET', 'class' => 'form-horizontal']) !!}
{{Form::label('pumpId', 'Select Pump', ['class'=>'required col-md-2'])}}
@if(isset($pumpId)) {{Form::select('pumpId', $pumps, $pumpId, ['placeholder' => 'Pick a Pump...', 'id'=>'pumpId','class'=>'form-control', 'required'])}} @else {{Form::select('pumpId', $pumps, null, ['placeholder' => 'Pick a Pump...', 'id'=>'pumpId','class'=>'form-control', 'required'])}} @endif
{{Form::submit('Search', ['class'=>'btn btn-primary'])}}
{!! Form::close() !!} {!! Form::open(['action' => 'PumpsController@updatePumpModules', 'method' => 'GET', 'class' => 'form-horizontal space-top','autocomplete'=>'off', 'data-parsley-validate']) !!} @if(isset($modules)) @if(count($modules)>0)
Plan Type
@foreach($modules as $module) @endforeach
Module Name Select Module
{{$module->name}} @if($module->mandatory == 1) @else @if($module->active == '1') @else @endif @endif

@if(isset($pumpId)) @endif {{Form::submit('Submit', ['class'=>'btn btn-primary'])}} {{Form::reset('Reset', ['class'=>'btn btn-primary'])}}
@endif @endif {!! Form::close() !!}
@endsection