@extends('layouts.admin.app') @section('title') Create Category @stop @section('main')
{!! Form::open(['method'=>'POST','files'=>'true','action' => 'AdminCategoriesController@store']) !!}
{!! Form::label('name', 'Category Name') !!} {!! Form::text('name', null, ['class'=>'form-control']) !!} @if ($errors->has('name')) {{ $errors->first('name') }} @endif
{!! Form::label('photo', 'Upload Photo') !!} {!! Form::file('photo', ['class'=>'form-control']) !!} @if ($errors->has('photo')) {{ $errors->first('photo') }} @endif
{!! Form::hidden('admin_only', 0) !!} {!! Form::checkbox('admin_only', 1, false) !!} {!! Form::label('admin_only', 'Show in Admin Only') !!} @if ($errors->has('admin_only')) {{ $errors->first('admin_only') }} @endif
{!! Form::submit('Create Category', ['class'=>'btn btn-primary']) !!}
{!! Form::close() !!}
@stop @section('footer') @stop