File manager - Edit - /var/www/payraty/hris/resources/views/training/create.blade.php
Back
@php $plan = App\Models\Plan::first(); @endphp {{ Form::open(['url' => 'training', 'method' => 'post', 'class' => 'needs-validation', 'novalidate']) }} <div class="modal-body"> @if (1==2) <div class="card-footer text-end"> <a href="#" class="btn btn-sm btn-primary" data-size="medium" data-ajax-popup-over="true" data-url="{{ route('generate', ['training']) }}" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ __('Generate') }}" data-title="{{ __('Generate Content With AI') }}"> <i class="fas fa-robot"></i>{{ __(' Generate With AI') }} </a> </div> @endif <div class="row"> <div class="col-md-12"> <div class="form-group"> {{ Form::label('branch', __('Branch'), ['class' => 'col-form-label']) }}<x-required></x-required> {{ Form::select('branch', $branches, null, ['class' => 'form-control select2', 'required' => 'required', 'id' => 'branch']) }} </div> </div> <div class="col-md-6"> <div class="form-group"> {{ Form::label('trainer_option', __('Trainer Option'), ['class' => 'col-form-label']) }}<x-required></x-required> {{ Form::select('trainer_option', $options, null, ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Select Trainer Option')]) }} </div> </div> <div class="col-md-6"> <div class="form-group"> {{ Form::label('training_type', __('Training Type'), ['class' => 'col-form-label']) }}<x-required></x-required> {{ Form::select('training_type', $trainingTypes, null, ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Select Training Type')]) }} </div> </div> <div class="col-md-6"> <div class="form-group"> {{ Form::label('trainer', __('Trainer'), ['class' => 'col-form-label']) }}<x-required></x-required> {{ Form::select('trainer', $trainers, null, ['class' => 'form-control select2', 'required' => 'required']) }} </div> </div> <div class="col-md-6"> <div class="form-group"> {{ Form::label('training_cost', __('Training Cost'), ['class' => 'col-form-label']) }}<x-required></x-required> {{ Form::number('training_cost', null, ['class' => 'form-control', 'step' => '0.01', 'required' => 'required', 'placeholder' => __('Enter Training Cost')]) }} </div> </div> <div class="col-md-12"> <div class="form-group"> {{ Form::label('employee', __('Employee'), ['class' => 'form-label']) }}<x-required></x-required> <div class="employee_div"> <select name="employee" id="employee" class="form-control " required> </select> </div> </div> </div> <div class="col-md-6"> <div class="form-group"> {{ Form::label('start_date', __('Start Date'), ['class' => 'col-form-label']) }} {{ Form::text('start_date', null, ['class' => 'form-control d_week current_date', 'autocomplete' => 'off']) }} </div> </div> <div class="col-md-6"> <div class="form-group"> {{ Form::label('end_date', __('End Date'), ['class' => 'col-form-label']) }} {{ Form::text('end_date', null, ['class' => 'form-control d_week current_date', 'autocomplete' => 'off']) }} </div> </div> <div class="form-group col-lg-12"> {{ Form::label('description', __('Description'), ['class' => 'col-form-label']) }} {{ Form::textarea('description', null, ['class' => 'form-control', 'placeholder' => __('Description'), 'rows' => '3']) }} </div> </div> </div> <div class="modal-footer"> <input type="button" value="Cancel" class="btn btn-light" data-bs-dismiss="modal"> <input type="submit" value="{{ __('Create') }}" class="btn btn-primary"> </div> {{ Form::close() }} <script> $(document).ready(function() { var now = new Date(); var month = (now.getMonth() + 1); var day = now.getDate(); if (month < 10) month = "0" + month; if (day < 10) day = "0" + day; var today = now.getFullYear() + '-' + month + '-' + day; $('.current_date').val(today); }); </script> <script> $('#branch').on('change', function() { var branch_id = this.value; $.ajax({ url: "{{ route('getemployee') }}", type: "post", data: { "branch_id": branch_id, "_token": "{{ csrf_token() }}", }, cache: false, success: function(data) { $('#employee').html('<option value="">{{ __('Select Employee') }}</option>'); $.each(data.employee, function(key, value) { $("#employee").append('<option value="' + value.id + '">' + value.name + '</option>'); }); } }) }); </script>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.36 |
proxy
|
phpinfo
|
Settings