@extends('admin.layouts.app') @section('title', 'Sub Categories') @section('content')

{{__('Sub Categories')}}

@if (Session::has('message'))
{{ Session::get('message') }}
@endif

{{__('Add Sub Category')}}

{!! Form::select('category_id', ['' =>__('Select Parent Category')]+$categories, null, array('class'=>"form-control ".APFrmErrHelp::hasError($errors, 'category_id')." ", 'id'=>'category_id')) !!} {!! APFrmErrHelp::showErrors($errors, 'category_id') !!}
{{ Form::text('title', Request::old('title'), array('id'=>'title','class' => "form-control ".APFrmErrHelp::hasError($errors, 'title')." ",'placeholder' => 'Enter name')) }} {!! APFrmErrHelp::showErrors($errors, 'title') !!}
{{ Form::text('arabic_title', Request::old('arabic_title'), array('id'=>'arabic_title','class' => "form-control ".APFrmErrHelp::hasError($errors, 'arabic_title')." ",'placeholder' => 'Enter arabic name')) }} {!! APFrmErrHelp::showErrors($errors, 'arabic_title') !!}
{!! Form::file('image', ['id'=>'image','class' => 'form-control file-chose', 'accept' => 'image/*']) !!}
{{ Form::textarea('description', Request::old('description'), array('id'=>'description','class' => "form-control ".APFrmErrHelp::hasError($errors, 'description')." ",'placeholder' => 'Enter description')) }} {!! APFrmErrHelp::showErrors($errors, 'description') !!}
{{ Form::textarea('arabic_description', Request::old('arabic_description'), array('id'=>'arabic_description','class' => "form-control ".APFrmErrHelp::hasError($errors, 'arabic_description')." ",'placeholder' => 'Enter arabic description')) }} {!! APFrmErrHelp::showErrors($errors, 'arabic_description') !!}
Active Inactive
{{ Form::close() }}
@endsection