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