@if(session()->has('category_created'))
{{session('category_created')}}
@endif
@include('includes.form_errors')
{!! Form::open(['method'=>'post', 'action'=>'ManageCategoriesController@store', 'files'=>true, 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}
{!! Form::label('name', __('Category Name:')) !!}
{!! Form::text('name', null, ['class'=>'form-control', 'placeholder'=>__('Enter category name'), 'required']) !!}
{!! Form::label('priority', __('Priority:')) !!}
{!! Form::number('priority', 1, ['class'=>'form-control', 'placeholder'=>__('Enter priority'), 'min'=>'1']) !!}
{!! Form::label('heading', __('Home Page Heading:')) !!}
{!! Form::text('heading', null, ['class'=>'form-control', 'placeholder'=>__('Enter home page heading'), '']) !!}
{!! Form::label('status', __('Status:')) !!}
{!! Form::select('status', [0=>__('inactive'), 1=>__('active')], 1, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
{!! Form::label('photo', __('Choose photo (400px*259px)'), ['class'=>'btn btn-default btn-file']) !!}
{!! Form::file('photo',['class'=>'form-control', 'style'=>'display: none;','onchange'=>'$("#upload-file-info").html(files[0].name)']) !!}
@lang('No photo chosen')
@include('partials.manage.meta-fields')
{!! Form::submit(__('Add Category'), ['class'=>'btn btn-primary btn-block', 'name'=>'submit_button']) !!}
{!! Form::close() !!}