<div class="main-title mb-25">
    <h3 class="mb-0">{{ __('appointment.Appointment Fee Settings') }}</h3>
</div>
<form
    action="@if(permissionCheck('setting.setCourseFee_update')){{route('appointment.save-flat-commission')}} @endif"
    method="post">
    <input type="hidden" name="type" value="appointment">
    @csrf
    <div class="row">
        <div class="col-xl-6">
            <div class="primary_input mb-25">
                <label class="primary_input_label"
                       for="">{{ __('appointment.Admin Revenue percentage of Appointment Fee') }}</label>
                <input class="primary_input_field" max="100"
                       value="{{@(int)$app_commission}}"
                       name="appointment_commission" placeholder="Admin Commission(%)"
                       oninput="calCommission()"
                       id="admin_comm_for_app" type="text">
            </div>
        </div>

        <div class="col-xl-6">
            <div class="primary_input mb-25">
                <label class="primary_input_label"
                       for="">{{ __('appointment.Instructor Revenue percentage of Appointment Fee') }}</label>
                <input class="primary_input_field" value="{{@(int)(100-$app_commission)}}"
                       readonly
                       name="appointment_instructor_comm" id="instructor_comm_for_app"
                       placeholder="Instructor Commission(%)"
                       type="text">
            </div>
        </div>


        @php
            $tooltip = "";
            if(!permissionCheck('setting.setCourseFee_update')){

                $tooltip = "You have no permission to add";
            }
        @endphp

        <div class="col-12 mb-10 pt_15">
            <div class="submit_btn text-center">
                <button class="primary-btn fix-gr-bg" data-bs-toggle="tooltip"
                        title="{{$tooltip}}" type="submit"><i
                        class="ti-check"></i> {{ __('common.Save') }}</button>
            </div>
        </div>
    </div>
</form>
