@push('after_scripts') @php $config = [ 'button_id' => "#btn-invoice-cancel", 'title' => trans('backpack::invoice.message.action_question', ['action' => trans('backpack::invoice.button.cancel')]), 'buttons_confirm_label' => __('backpack::invoice.button.cancel'), 'buttons_cancel_label' => __('backpack::crud.cancel'), 'action_url' => route('admin.invoice.cancel', ['invoice_id' => $crud->entry->getKey()]), 'method' => "PUT", 'action_type' => "api", 'bootbox_type' => "prompt" ]; @endphp @endpush