{{-- Public kaynak takvimi liste öğesi. Beklenen: $s (ResourceSchedule), $tc (tip meta) --}}
@php
    $days = $s->start_date->diffInDays($s->end_date) + 1;
@endphp
<div class="sch-item">
    <div class="sch-ic" style="background:{{ $tc['bg'] }};color:{{ $tc['color'] }}"><i class="fas {{ $tc['icon'] }}"></i></div>
    <div class="sch-body">
        <div class="sch-badges">
            <span class="sch-type" style="background:{{ $tc['bg'] }};color:{{ $tc['color'] }}">{{ $tc['label'] }}</span>
            <span class="sch-date">
                <i class="far fa-calendar"></i>
                {{ $s->start_date->format('d.m.Y') }}@if($s->start_date->ne($s->end_date)) → {{ $s->end_date->format('d.m.Y') }} <span style="color:#cbd5e1">({{ $days }} gün)</span>@endif
                @if($s->start_time) · <i class="far fa-clock"></i> {{ substr($s->start_time, 0, 5) }} - {{ substr($s->end_time ?? '', 0, 5) }}@endif
            </span>
        </div>
        <div class="sch-title">{{ $s->title }}</div>
        @if($s->description)<div class="sch-desc">{{ $s->description }}</div>@endif
    </div>
</div>
