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

{{$section->title}}

{{-- @include('admin.components.alert') --}}
{!! Form::model($category, ['route' => $section->route, 'class' => 'form-validate', 'files' => true, 'enctype' => 'multipart/form-data', 'autocomplete' => 'off']) !!} @method($section->method)
{!! Form::text('category_name', null, ['class' => 'form-control', 'placeholder' => 'Category Name', 'required' => 'required', 'id' => 'name']) !!}
@if ($errors->has('category_name'))

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

@endif
{!! Form::text('category_slug', null, ['class' => 'form-control', 'placeholder' => 'Category Slug', 'required' => 'required', 'id' => 'name']) !!}
@if ($errors->has('category_slug'))

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

@endif
{!! Form::file('image', ['class' => 'custom-file-input', 'id' => 'customFile']) !!}
@if ($errors->has('image'))

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

@endif
@if($section->method == "PUT")
{!! Form::select('status', ['1' => 'Active', '0' => 'Inactive'], null, ['class' => 'form-control form-select select2']); !!}
@endif
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-outline-primary']) !!}
{!! Form::close() !!}
@section('scripts') @endsection @endsection