@extends('admin/layouts/default') {{-- Page title --}} @section('title') Create New product @parent @stop {{-- Page content --}} @section('content')

Products

Create a new product

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {!! Form::open(['url' => 'admin/products', 'enctype' => 'multipart/form-data']) !!}
{!! Form::label('name', 'Name: ') !!} {!! Form::text('name', null, ['class' => 'form-control']) !!}
{!! Form::label('code', 'Code: ') !!} {!! Form::text('code', null, ['class' => 'form-control']) !!}
{!! Form::label('description', 'Description: ') !!} {!! Form::textarea('description', null, ['class' => 'form-control', 'rows' => 3]) !!}
{!! Form::label('grade', 'Grade: ') !!} {!! Form::text('grade', null, ['class' => 'form-control']) !!}
{!! Form::label('discount', 'Discount: ') !!} {!! Form::text('discount', null, ['class' => 'form-control']) !!}
{!! Form::label('category_id', 'Category: ') !!} {!! Form::select('category_id', $category, null, ['class' => 'form-control']) !!}
{!! Form::label('sub_category_id', 'Sub Category: ') !!} {!! Form::select('sub_category_id', $sub_category, null, ['class' => 'form-control']) !!}
{!! Form::label('seller_id', 'Seller: ') !!} {!! Form::select('seller_id', $seller, null, ['class' => 'form-control']) !!}
{!! Form::label('store_id', 'Store: ') !!} {!! Form::select('store_id', $store, null, ['class' => 'form-control']) !!}
{!! Form::label('price', 'Price: ') !!} {!! Form::text('price', null, ['class' => 'form-control']) !!}
{!! Form::label('product_image', 'Product Image: ') !!}
{!! Form::label('product_alt_image', 'Alternative Product Image: ') !!}
{!! Form::label('status_code', 'Status Code: ') !!} {!! Form::select('status_code', $status, null, ['class' => 'form-control']) !!}
@lang('button.cancel')
{!! Form::close() !!}
@stop