@extends('layouts.app') @section('content')

@lang('global.product-categories.title')

{!! Form::model($product_category, ['method' => 'PUT', 'route' => ['admin.product_categories.update', $product_category->id], 'files' => true,'class'=>'formvalidation']) !!}
@lang('global.app_edit')
{!! Form::label('name', trans('global.product-categories.fields.name').'*', ['class' => 'control-label form-label']) !!}
{!! Form::text('name', old('name'), ['class' => 'form-control', 'placeholder' => 'Enter category name', 'required' => '']) !!}

@if($errors->has('name'))

{{ $errors->first('name') }}

@endif
{!! Form::label('description', trans('global.product-categories.fields.description').'', ['class' => 'control-label']) !!} {!! Form::textarea('description', old('description'), ['class' => 'form-control ', 'placeholder' => 'Description', 'rows' => 2]) !!}

@if($errors->has('description'))

{{ $errors->first('description') }}

@endif
@if( $product_category->photo && file_exists(public_path() . '/thumb/' . $product_category->photo)) @endif {!! Form::label('photo', trans('global.product-categories.fields.photo').'', ['class' => 'control-label']) !!} {!! Form::file('photo', ['class' => 'form-control', 'style' => 'margin-top: 4px;']) !!} {!! Form::hidden('photo_max_size', 8) !!} {!! Form::hidden('photo_max_width', 6000) !!} {!! Form::hidden('photo_max_height', 6000) !!}

@lang('global.products.gallery-file-types')

@if($errors->has('photo'))

{{ $errors->first('photo') }}

@endif
{!! Form::submit(trans('global.app_update'), ['class' => 'btn btn-danger wave-effect']) !!} {!! Form::close() !!} @stop