@extends('adminlte::layouts.app') @section('htmlheader_title') Product @endsection @section('page_title') Product @endsection @section('contentheader_title') Product @endsection @section('contentheader_description') @endsection @section('main-content')

Product Configuration

@csrf
@include('adminlte::widget.form_select',[ 'label'=>'Product', 'icon'=>'fas fa-list', 'id'=>'product_id', 'old'=>'product_id', 'name'=>'product_id', 'groupby'=>'active', 'options'=>\App\Models\Product::get()->sortBy(function($item) { return ($item->active ? '0' : '1').$item->name; })->transform(function($item) { return ['id'=>$item->id,'value'=>$item->name,'active'=>$item->active]; }), 'value'=>'', ])
@endsection @section('page-scripts') @css(select2) @js(select2,autofocus) @append