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

{{__('Sub Categories')}}

{{__('Update Category')}}

{{ Form::model($category, array('route' => array('admin.sub_categories.update', $category->id), 'method' => 'POST','files'=>true)) }}
{!! Form::select('category_id', ['' =>__('Select Parent Category')]+$categories, $category->category_id, array('class'=>"form-control ".APFrmErrHelp::hasError($errors, 'category_id')." ", 'id'=>'category_id')) !!} {!! APFrmErrHelp::showErrors($errors, 'category_id') !!}
{{ Form::text('title', $category->title, array('id'=>'title','class' => "form-control ".APFrmErrHelp::hasError($errors, 'title')." ",'placeholder' => 'Enter name')) }} {!! APFrmErrHelp::showErrors($errors, 'title') !!}
{{ Form::text('arabic_title', $category->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', $category->description, array('id'=>'description','class' => "form-control ".APFrmErrHelp::hasError($errors, 'description')." ",'placeholder' => 'Enter description')) }} {!! APFrmErrHelp::showErrors($errors, 'description') !!}
{{ Form::textarea('arabic_description', $category->arabic_description, array('id'=>'arabic_description','class' => "form-control ".APFrmErrHelp::hasError($errors, 'arabic_description')." ",'placeholder' => 'Enter arabic description')) }} {!! APFrmErrHelp::showErrors($errors, 'arabic_description') !!}
status=='1') checked @endif value="1"> Active status=='0') checked @endif value="0"> Inactive
{{ Form::close() }}
@endsection