@php $is_can_read = backpack_user()->can('read', $crud->entry); $is_can_update = backpack_user()->can('update', $crud->entry); @endphp @extends('crud::edit', [ 'submit_form' => "invoice_submit_form", 'show_form_save_buttons' => $is_can_update ]) @section('before_form_save_buttons') @if(backpack_user()->can('cancel', $crud->entry)) @include('crud::buttons.quotation.invoice.cancel') @endif @endsection @push('after_form_save_buttons') @if(backpack_user()->can('submit', $crud->entry)) @include('crud::buttons.quotation.invoice.submit') @endif @if(backpack_user()->can('rework', $crud->entry)) @include('crud::buttons.quotation.invoice.rework') @endif @if(backpack_user()->can('approve', $crud->entry)) @include('vendor.backpack.crud.buttons.quotation.invoice.approve') @endif @endpush