@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('categories_name', null, ['class' => 'form-control', 'placeholder' => 'Category Name', 'required' => 'required', 'id' => 'name']) !!}
@if ($errors->has('categories_name'))

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

@endif
{!! Form::textarea('banner_title', null, ['class' => 'form-control ckeditor', 'placeholder' => 'Banner title', 'required' => 'required', 'id' => 'name']) !!}
@if ($errors->has('banner_title'))

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

@endif
{!! Form::textarea('banner_heading', null, ['class' => 'form-control content ckeditor', 'placeholder' => 'Banner Heading', 'required' => 'required', 'id' => 'name']) !!}
@if($errors->has('banner_heading'))

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

@endif
{!! Form::file('banner', ['class' => 'custom-file-input', 'id' => 'customFile']) !!}
@if($section->method == 'PUT') @endif
{!! Form::file('image', ['class' => 'custom-file-input', 'id' => 'customFile']) !!}
@if($section->method == 'PUT') @endif
@if($section->method == "PUT")
{!! Form::select('flag', ['1' => 'active', '0' => 'inactive'], null, ['class' => 'form-control form-select select2']); !!}
@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