feat: update edit for flights and add create flights in admin panel

This commit is contained in:
2026-08-20 14:18:28 +03:30
parent 6cde2328c1
commit 87e0fc16f8
6 changed files with 428 additions and 52 deletions
+24 -20
View File
@@ -167,30 +167,34 @@
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function () {
<script>
document.addEventListener('DOMContentLoaded', function () {
const startTime = document.getElementById('start_time');
const endTime = document.getElementById('end_time');
const startDate = document.getElementById('start_date');
const endDate = document.getElementById('end_date');
if (typeof $ !== 'undefined' && typeof $.fn.persianDatepicker !== 'undefined') {
if (typeof $ !== 'undefined' && typeof $.fn.persianDatepicker !== 'undefined') {
$(startTime).persianDatepicker({
format: 'YYYY/MM/DD HH:mm',
autoClose: true,
initialValue: false,
timePicker: {
enabled: true
}
});
$(startDate).persianDatepicker({
format: 'YYYY/MM/DD',
autoClose: true,
initialValue: false
});
$(endTime).persianDatepicker({
format: 'YYYY/MM/DD HH:mm',
autoClose: true,
initialValue: false,
timePicker: {
enabled: true
}
});
$(endDate).persianDatepicker({
format: 'YYYY/MM/DD',
autoClose: true,
initialValue: false
});
}
});
</script>
}
});
</script>
@endsection