@extends('layouts.app') @section('content')

@lang('global.master-settings.title')

{!! Form::open(['method' => 'POST', 'route' => ['admin.master_settings.store'],'class'=>'formvalidation']) !!}
@lang('global.app_create')
{!! Form::label('module', trans('global.master-settings.fields.module').'*', ['class' => 'control-label form-label']) !!}
{!! Form::text('module', old('module'), ['class' => 'form-control', 'placeholder' => 'Module', 'required' => '']) !!}

@if($errors->has('module'))

{{ $errors->first('module') }}

@endif
{!! Form::label('key', trans('global.master-settings.fields.key').'*', ['class' => 'control-label form-label']) !!}
{!! Form::text('key', old('key'), ['class' => 'form-control', 'placeholder' => 'Key', 'required' => '']) !!}

@if($errors->has('key'))

{{ $errors->first('key') }}

@endif
{!! Form::label('moduletype', trans('custom.settings.moduletype').'*', ['class' => 'control-label']) !!} {!! Form::select('moduletype', $enum_moduletype, old('moduletype'), ['class' => 'form-control select2', 'required' => '']) !!}

@if($errors->has('moduletype'))

{{ $errors->first('moduletype') }}

@endif
@php $statuses = array( 'Active' => trans( 'custom.common.active' ), 'Inactive' => trans( 'custom.common.inactive' ), ); @endphp
{!! Form::label('status', trans('custom.settings.status').'*', ['class' => 'control-label']) !!} {!! Form::select('status', $statuses, old('status'), ['class' => 'form-control select2', 'required' => '']) !!}

@if($errors->has('status'))

{{ $errors->first('status') }}

@endif
{!! Form::label('description', trans('global.master-settings.fields.description').'', ['class' => 'control-label']) !!} {!! Form::textarea('description', old('description'), ['class' => 'form-control ', 'placeholder' => 'Description','rows'=>'4']) !!}

@if($errors->has('description'))

{{ $errors->first('description') }}

@endif
{!! Form::submit(trans('global.app_save'), ['class' => 'btn btn-danger wave-effect']) !!} {!! Form::close() !!} @stop