@extends('admin.layout') @section('content')

{{ trans('labels.EditSubCategories') }} {{ trans('labels.EditSubCategories') }}...

{{ trans('labels.EditSubCategories') }}


@if (count($errors) > 0) @if($errors->any()) @endif @endif
{!! Form::open(array('url' =>'admin/updateSubCategory', 'method'=>'post', 'class' => 'form-horizontal form-validate', 'enctype'=>'multipart/form-data')) !!} {!! Form::hidden('id', $result['editSubCategory'][0]->id , array('class'=>'form-control', 'id'=>'id')) !!} {!! Form::hidden('oldImage', $result['editSubCategory'][0]->image , array('id'=>'oldImage')) !!} {!! Form::hidden('oldIcon', $result['editSubCategory'][0]->icon , array('id'=>'oldIcon')) !!}
{{ trans('labels.ChooseMainCategory') }}
@foreach($result['description'] as $description_data)
{{ trans('labels.CategoryName') }} ({{ $description_data['language_name'] }}).
@endforeach
{!! Form::file('newImage', array('id'=>'newImage')) !!} {{ trans('labels.UploadSubCategoryImage') }}
{!! Form::file('newIcon', array('id'=>'newIcon')) !!} {{ trans('labels.UploadSubCategoryIcon') }}
{!! Form::close() !!}
@endsection