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

{{$section->title}}

{{-- @include('admin.components.alert') --}}
{!! Form::model($productAddon, ['route' => $section->route, 'class' => 'form-validate', 'files' => true, 'enctype' => 'multipart/form-data', 'autocomplete' => 'off']) !!} @method($section->method)
{!! Form::select('category_id',$category, null, ['class' => ' form-control form-select select2 ']) !!}
{!! Form::select('sub_category_id',$subCategory, null, ['class' => ' form-control form-select select2 ']) !!}
{!! Form::select('product_id',$products, null, ['class' => ' form-control form-select select2 ']) !!}
{!! Form::text('name', null, ['class' => 'form-control', 'placeholder' => 'Name', 'required' => 'required', 'id' => 'name']) !!}
@if ($errors->has('name'))

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

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

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

@endif
{!! Form::file('image', ['class' => 'custom-file-input', 'id' => 'customFile']) !!}
@if ($errors->has('image'))

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

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

{{ $errors->first('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