43 lines
1.2 KiB
PHP
Executable File
43 lines
1.2 KiB
PHP
Executable File
@extends('layouts.loggedform')
|
|
@section('card')
|
|
@component('components.card')
|
|
@slot('title')
|
|
@lang('YO les ptits loups - ') <a href="{{route("pilot.create")}}"><i class="far fa-plus-square"></i></a>
|
|
@endslot
|
|
|
|
|
|
<script type="text/javascript">
|
|
var tableRelays = '';
|
|
var pilots = '';
|
|
var raceParams = '';
|
|
|
|
window.reloadData = function (id, name) {
|
|
|
|
document.cookie = "active_kartid=" + id;
|
|
document.cookie = "active_kartname=" + name;
|
|
|
|
if (name != null)
|
|
$('#btnChoiceKartTitle').html(name);
|
|
|
|
$.ajax({
|
|
url: '/getpilotsBykart',
|
|
data: {id: id},
|
|
success: function (data) {
|
|
pilots = data.data;
|
|
}
|
|
});
|
|
|
|
$.ajax({
|
|
url: '/getRaceParams',
|
|
success: function (data) {
|
|
raceParams = data.data;
|
|
}
|
|
});
|
|
}
|
|
|
|
$(() => {
|
|
reloadData(getCookie('active_kartid'), getCookie('active_kartname'));
|
|
})
|
|
</script>
|
|
@endsection
|