@extends('layouts.admin.master') @section('title', !empty($category) ? 'Edit Category' : 'Add Category') @section('content') @include('layouts.admin.flash.alert')

Manage categories Here you can {{ !empty($category) ? 'edit' : 'add' }} category

{{ Breadcrumbs::render('common',['append' => [['label'=> $getController,'route'=> 'admin.categories'],['label' => !empty($category) ? 'Edit Category' : 'Add Category' ]]]) }}

{{ !empty($category) ? 'Edit Category' : 'Add Category' }}

Back
@if(isset($category)) {{ Form::model($category, ['route' => ['admin.categories.update', $category->id], 'method' => 'patch']) }} @else {{ Form::open(['route' => 'admin.categories.store']) }} @endif
{{ Form::select('parent_id', $parentCategories, old("parent_id"), ['class' => 'form-control']) }} @if($errors->has('parent_id')) {{ $errors->first('parent_id') }} @endif
{{ Form::text('title', old('title'), ['class' => 'form-control','placeholder' => 'Title']) }} @if($errors->has('title')) {{ $errors->first('title') }} @endif
{{ Form::text('slug', old('slug'), ['class' => 'form-control','placeholder' => 'Slug']) }} @if($errors->has('slug')) {{ $errors->first('slug') }} @endif
{{ Form::select('status', [1 => 'Active', 0 => 'Inactive'], old("status"), ['class' => 'form-control']) }}
{{ Form::text('meta_title', old('meta_title'), ['class' => 'form-control','placeholder' => 'Meta Title']) }} @if($errors->has('meta_title')) {{ $errors->first('meta_title') }} @endif
{{ Form::text('meta_keyword', old('meta_keyword'), ['class' => 'form-control','placeholder' => 'Meta Keyword']) }} @if($errors->has('meta_keyword')) {{ $errors->first('meta_keyword') }} @endif
{{ Form::textarea('meta_description', old('meta_description'), ['class' => 'form-control','placeholder' => 'Meta Description', 'rows' => 4]) }} @if($errors->has('meta_description')) {{ $errors->first('meta_description') }} @endif
{{ Form::close() }}
@stop