@extends('crud::list') @php $html = \App\Http\CrudConfig\Quotation\QuotationInquiriesRenderConfig::renderTeacher("resources.backpack.view.quotation.quotation_inquiry_list.blade", $crud, function ($crud) { // add unit_id within inquiry->unit_id and backpack_user->unid $crud->addField([ 'label' => __('backpack::invoice.label.unit_id'), 'name' => 'unit_id', 'type' => 'select2_from_ajax', 'entity' => 'quotationInquiryUnit', 'attribute' => 'crudDisplay', 'model' => "App\Models\Quotation\QuotationInquiryUnit", 'allows_null' => true, 'minimum_input_length' => 0, 'data_source' => route("admin.quotation_inquiry.unit"), 'init_function' => false, 'init_script' => false, 'method' => "POST", ]); // Quotation $crud->addField([ 'label' => __('backpack::invoice.label.quotation'), 'name' => 'quotation_id', 'type' => 'select2_from_ajax', 'entity' => 'quotations', 'attribute' => 'crudDisplay', 'model' => "App\Models\Quotation\Quotation", 'allows_null' => true, 'minimum_input_length' => 0, 'data_source' => route("admin.quotation_inquiry.clone.quotation"), 'init_function' => false, 'init_script' => false, 'method' => "POST", ]); }); @endphp @push('body-top')