@extends('admin.layouts.layout') @section('content')

{{ trans('admin_lang.edit') }} Setting

{!! Form::model($sdata, [ 'route' => [routeFormUser($pagePath . '.update'), encrypt($sdata->id)], 'method' => 'patch', 'files' => true, 'class' => 'upload_submit', ]) !!}
{!! Form::text('field_title', $sdata->field_title, ['class' => 'form-control', 'placeholder' => 'Enter field title', 'required']) !!} @if ($errors->has('field_title')) {{ $errors->first('field_title') }} @endif
{!! Form::select('field_type', ['text' => 'Text', 'number' => 'Number', 'email' => 'Email', 'url' => 'Url', 'image' => 'Image' ], $sdata->field_type, ['class' => 'form-control', 'id' => 'discount_type', 'required'] ) !!} @if ($errors->has('value')) {{ $errors->first('value') }} @endif
{!! Form::text('value', $sdata->value, ['class' => 'form-control', 'placeholder' => 'Enter value', 'required']) !!} @if ($errors->has('value')) {{ $errors->first('value') }} @endif
{!! Form::close() !!}
@endsection