@extends('admin.layouts.master') @section('css') @endsection @section('content')
{!! Form::open(array('route' => \App\Helpers\Helper::adminPrefix(). '.store', 'name' => 'user-form', 'id' => 'user-form', 'autocomplete' => 'off', 'files' => true)) !!}

{{ __('Create') }} {{ \App\Helpers\Helper::pagePrefix(2) }}

{!! Form::label('cat_id', 'Category :', ['class' => 'control-label']) !!} {!! Form::select('cat_id[]', \App\Helpers\Helper::category(false), old('cat_id'), ['class' => $errors->has('cat_id') ? 'form-control is-invalid' : 'form-control', 'id' => 'cat_id', 'multiple' => 'multiple']) !!} @if ($errors->has('cat_id')) {{ $errors->first('cat_id') }} @endif
{!! Form::label('title', 'Title :', ['class' => 'control-label']) !!} {!! Form::text('title', old('title'), ['class' => $errors->has('title') ? 'form-control is-invalid' : 'form-control', 'id' => 'title', 'placeholder' => 'Product title']) !!} @if ($errors->has('title')) {{ $errors->first('title') }} @endif
{!! Form::label('file', 'File :', ['class' => 'control-label']) !!}
{!! Form::file('file', ['class' => $errors->has('file_src') ? 'custom-file-input is-invalid' : 'custom-file-input']) !!} {!! Form::label('file', 'Choose file', ['class' => 'custom-file-label']) !!} @if ($errors->has('file_src')) {{ $errors->first('file_src') }} @endif
{!! Form::label('thumb', 'Thumbnail :', ['class' => 'control-label']) !!}
{!! Form::file('thumb', ['class' => $errors->has('thumb_src') ? 'custom-file-input is-invalid' : 'custom-file-input']) !!} {!! Form::label('thumb', 'Choose thumbnail', ['class' => 'custom-file-label']) !!} @if ($errors->has('thumb_src')) {{ $errors->first('thumb_src') }} @endif
{!! Form::label('status', 'Active :', ['class' => 'control-label']) !!}
{!! Form::radio('status', '1', old('status', true), ['id' => 'statuson']) !!} {!! Form::label('statuson', 'Yes') !!}
{!! Form::radio('status', '0', old('status', false), ['id' => 'statusoff']) !!} {!! Form::label('statusoff', 'No') !!}
{!! Form::label('ordering', 'Order :', ['class' => 'control-label']) !!} {!! Form::number('ordering', old('ordering', 0), ['class' => 'form-control', 'id' => 'ordering']) !!}
{!! Form::label('description', 'Description :', ['class' => 'control-label']) !!} {!! Form::text('description', old('description'), ['class' => 'form-control', 'id' => 'description', 'placeholder' => 'Product description']) !!}
{{ Form::hidden('file_src', old('file_src'), ['id' => 'file_src']) }} {{ Form::hidden('thumb_src', old('thumb_src'), ['id' => 'thumb_src']) }} {!! Form::close() !!}
@endsection @section('script') @endsection