@extends('admin.main') @php use App\Helpers\Form as FormTemplate; use App\Helpers\Template; $formInputAttr = config('zvn.template.form_input'); $formLabelAttr = config('zvn.template.form_label'); $formCkeditor = config('zvn.template.form_ckeditor'); $statusValue = ['default' => 'Select status', 'active' => config('zvn.template.status.active.name'), 'inactive' => config('zvn.template.status.inactive.name')]; $inputHiddenID = Form::hidden('id', @$item['id']); $elements_1 = [ [ 'label' => Form::label('name', 'Name', $formLabelAttr), 'element' => Form::text('name', @$item['name'], $formInputAttr), ], [ 'label' => Form::label('value', 'Phí ship', $formLabelAttr), 'element' => Form::number('value', @$item['value'], $formInputAttr), ], [ 'element' => $inputHiddenID . Form::submit('Save', ['class' => 'btn btn-success']), 'type' => 'btn-submit', ], ]; @endphp @section('content') @include ('admin.templates.page_header', ['pageIndex' => false]) @include ('admin.templates.error')
{{ Form::open([ 'method' => 'POST', 'url' => route("$controllerName/save"), 'accept-charset' => 'UTF-8', 'enctype' => 'multipart/form-data', 'class' => 'form-horizontal form-label-left', 'id' => 'main-form', ]) }} @include('admin.templates.x_title', ['title' => 'Thông tin chung'])
{!! FormTemplate::show($elements_1) !!}
{{ Form::close() }}
@endsection @push('custom-script') @endpush