@php $is_graduation = $crud->entry->is_graduation == \App\Models\School\School::ENUM_YES; $is_can_delete = backpack_user()->can('delete', $crud->entry) && !$is_graduation; $is_can_update = backpack_user()->can('update', $crud->entry) && !$is_graduation; @endphp @extends('crud::edit', [ 'submit_form' => "school_submit_form", 'show_form_save_buttons' => $is_can_update ]) @section('before_form_save_buttons') @if($is_can_delete) @include('crud::buttons.school.delete',['school' => $crud->entry]) @endif @endsection @section("before_request")
* 修改權限只適用於已配對的學校聯絡專員、單位主任及管理員。
@endsection