@extends("admin.layouts.app") @section("title", __("admin.calendar.title")) @section("content") @php $now = now(); $month = request("month", $now->month); $year = request("year", $now->year); $current = \Carbon\Carbon::createFromDate($year, $month, 1); $daysInMonth = $current->daysInMonth; $startDow = $current->dayOfWeek; $prev = $current->copy()->subMonth(); $next = $current->copy()->addMonth(); @endphp
| {{ $d }} | @endforeach|
|---|---|
|
{{ $day }}
@foreach($dayEvents->take(3) as $ev)
@endforeach
@if($dayEvents->count() > 3)
+{{ $dayEvents->count() - 3 }} more
@endif
|
@php $day++; @endphp
@else
@endif @endfor |
| {{ __('admin.calendar.event_title') }} | {{ __('common.table.date') }} | {{ __('common.table.description') }} | {{ __('admin.calendar.by') }} | {{ __('common.table.actions') }} |
|---|---|---|---|---|
| {{ $ev->title }} | {{ $ev->start?->format('d M Y H:i') }}@if($ev->end) - {{ $ev->end->format('d M Y H:i') }}@endif | {{ \Illuminate\Support\Str::limit($ev->description ?? '', 60) ?: '-' }} | {{ $ev->admin ?? '-' }} |