{!! Form::label('category_id', 'Category:') !!} {!! Form::select('category_id', Common::getCategories(),null ,['class' => 'select2 form-select ','id'=>'category_id']) !!}
{!! Form::label('name', 'Name:') !!} {!! Form::text('name', null, ['class' => 'form-control', 'maxlength' => 255, 'maxlength' => 255, 'maxlength' => 255]) !!}
{!! Form::label('detail', 'Detail:') !!} {!! Form::textarea('detail', null, ['class' => 'form-control', 'rows'=>4,'maxlength' => 65535]) !!}
{!! Form::label('price', 'Price:') !!} {!! Form::number('price', null, ['class' => 'form-control','step'=>'any']) !!}
@isset(auth()->user()->branch_id)
{!! Form::hidden('branch_id', auth()->user()->branch_id) !!}
@else
{!! Form::label('branch_id', 'Branch:') !!} {!! Form::select('branch_id', Common::getBranches(),null ,['class' => 'select2 form-select ','id'=>'branch_id']) !!}
@endisset
status) checked @endisset />
{{--
@php if(isset($items) && $items->image_name){ $image_url = asset('uploads/'.$items->image_name); }else{ $image_url = 'https://placehold.co/200X150?text=Upload+Image'; } @endphp
--}}