You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
44 lines
1.2 KiB
|
1 year ago
|
@extends("admin.layouts.layout")
|
||
|
|
|
||
|
|
@php
|
||
|
|
$pageTitle = __("actions.".last(explode("/",request()->url()))).$modelName;
|
||
|
|
@endphp
|
||
|
|
|
||
|
|
@section("content")
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-12">
|
||
|
|
<div class="card">
|
||
|
|
<div class="card-body">
|
||
|
|
@include("public._form")
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
@endsection
|
||
|
|
|
||
|
|
@push("footer")
|
||
|
|
<script>
|
||
|
|
$(function() {
|
||
|
|
$("#project_id").change(getLevels);
|
||
|
|
});
|
||
|
|
|
||
|
|
function getLevels() {
|
||
|
|
var project_id = $("#project_id").val();
|
||
|
|
var url = "{{ url($urlPrefix."/get-levels") }}";
|
||
|
|
$.get(url,{project_id:project_id},function(res) {
|
||
|
|
var html = "";
|
||
|
|
for (k in res) {
|
||
|
|
html += "<option value='"+ res[k].id +"'>"+ res[k].name +"</option>";
|
||
|
|
}
|
||
|
|
$("#paramedic_level_id").html(html);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
function uploaderCallback(file, data, index) {
|
||
|
|
$('input[data-uploader-index=' + index + ']').val("/storage/" + (data.folder ? data.folder + "/" : "") + data.name);
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
</script>
|
||
|
|
@endpush
|