@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)
{{ __('admin.calendar.more', ['count' => $dayEvents->count() - 3]) }}
@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?->timezone(display_tz())->format(datetime_fmt()) }}@if($ev->end) - {{ $ev->end->timezone(display_tz())->format(datetime_fmt()) }}@endif | {{ \Illuminate\Support\Str::limit($ev->description ?? '', 60) ?: '-' }} | {{ $ev->admin ?? '-' }} |