feat: Add npm dependencies and update vendor paths
- Add package.json dependencies: jquery, jquery-ui, moment, daterangepicker, wavesurfer.js, air-datepicker - Create scripts/setup-vendor.js to copy npm packages to public/assets/vendor - Update view templates to use vendor paths instead of old /js/ or CDN URLs - Clean up legacy commented-out scripts in master layout
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
@php($now = new \DateTime("now"))
|
||||
@foreach($days as $title => $day)
|
||||
<div id="tab_radio_items_{{$title}}" class="tab_content{{(!$date && $title == 'today') || ($date && $title == 'custom') ? ' active' : ''}}">
|
||||
<div class="row">
|
||||
@if(isset($schedule[$day]) && $schedule[$day])
|
||||
@foreach($schedule[$day] as $item)
|
||||
@php($isCurrent = ($now >= $item['starttime']) && ($now <= $item['endtime']))
|
||||
<div class="col-12 col-md-3">
|
||||
<a class="box full-width full-height" href="{{route('programma') . $item['program']->url}}"
|
||||
title="{{$item['program']->name . ($item['program']->tagline ? "\n" . $item['program']->tagline : "")}}">
|
||||
<img src="{{$item['program']->image ?? 'images/noimage.png'}}">
|
||||
@if($isCurrent)
|
||||
<div href="{{route('luister.live')}}" class="onair" title="Nu live!">Nu live!</div>
|
||||
@endif
|
||||
<div class="program-title">
|
||||
{{$item['program']->name}}
|
||||
</div>
|
||||
<div class="program-times"><i class="fa-regular fa-clock"></i>
|
||||
{{$item['starttime']->format('H:i')}} – {{$item['endtime']->format('H:i')}}
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="no-results col-12">Geen resultaten gevonden.</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endforeach
|
||||
Reference in New Issue
Block a user