@php
if (\Lang::has('backpack::quotation.button.rework_'.$crud->entry->status)) {
$btn_quotation_rework_label = trans('backpack::quotation.button.rework_'.$crud->entry->status);
}
else {
$btn_quotation_rework_label = trans('backpack::quotation.button.rework');
}
@endphp
@push('after_scripts')
@php
$config = [
'button_id' => "#btn-quotation-rework",
'title' => trans('backpack::quotation.message.action_question', ['action' => $btn_quotation_rework_label]),
'buttons_confirm_label' => $btn_quotation_rework_label,
'buttons_cancel_label' => __('backpack::crud.cancel'),
'action_url' => route('admin.quotation.rework', ['quotation_id' => $crud->entry->getKey()]),
'method' => "PUT",
'action_type' => "api",
'bootbox_type' => "prompt",
];
@endphp
@endpush