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

{{$section->title}}

{{-- @include('admin.components.alert') --}}
{!! Form::model($product, ['route' => $section->route, 'class' => 'form-validate', 'files' => true, 'enctype' => 'multipart/form-data', 'autocomplete' => 'off']) !!} @method($section->method)
{!! Form::text('product_name', null, ['class' => 'form-control', 'placeholder' => 'Product Name', 'required' => 'required', 'id' => 'name']) !!}
@if ($errors->has('product_name'))

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

@endif
{!! Form::text('product_slug', null, ['class' => 'form-control', 'placeholder' => 'Product Slug', 'required' => 'required', 'id' => 'name']) !!}
@if ($errors->has('product_slug'))

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

@endif
{!! Form::number('product_price', null, ['class' => 'form-control', 'placeholder' => 'Product Price', 'required' => 'required', 'id' => 'name']) !!}
@if ($errors->has('product_price'))

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

@endif
{!! Form::number('product_discount_price', null, ['class' => 'form-control', 'placeholder' => 'Product Discount Price', 'required' => 'required', 'id' => 'name']) !!}
@if ($errors->has('product_discount_price'))

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

@endif
{!! Form::number('product_quantity', null, ['class' => 'form-control', 'placeholder' => 'Product Quantity', 'required' => 'required', 'id' => 'name']) !!}
@if ($errors->has('product_quantity'))

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

@endif
{!! Form::file('image', ['class' => 'custom-file-input upload-zone small bg-lighter my-2 dropzone dz-clickable', 'id' => 'customFile']) !!}
@if ($errors->has('image'))

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

@endif
{!! Form::textarea('product_description', null, ['class' => 'form-control ckeditor', 'placeholder' => 'Product Description', 'required' => 'required', 'id' => 'name']) !!}
@if ($errors->has('product_description'))

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

@endif
@if($section->method == "PUT")
{!! Form::select('status', ['1' => 'Active', '0' => 'Inactive'], null, ['class' => 'form-control form-select select2']); !!}
@endif
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-outline-primary']) !!}
{!! Form::close() !!}
@section('scripts') @endsection @endsection