@extends('layouts.panel') @section('title', app(\App\Services\TitleService::class)->generate()) @section('content')
@php $firstDay = \Morilog\Jalali\Jalalian::fromCarbon($startDate); $lastDay = \Morilog\Jalali\Jalalian::fromCarbon($endDate); @endphp {{ $firstDay->format('F') }} {{ $firstDay->format('Y') }}
@foreach($calendarDays->take(7) as $day)
{{ $day['day_name'] }}
{{ $day['jalali_date'] }} {{ $day['jalali_month'] }}
@foreach($day['reminders'] as $reminder) @php $colorClass = 'task-green'; if ($reminder->category === 'مقالات') { $colorClass = 'task-teal'; } elseif ($reminder->category === 'محصولات') { $colorClass = 'task-blue'; } elseif ($reminder->importance === 'high') { $colorClass = 'task-red'; } elseif ($reminder->importance === 'medium') { $colorClass = 'task-orange'; } $time = $reminder->date->format('H:i'); @endphp
{{ $reminder->title }}
@if($reminder->description)
{{ Str::limit($reminder->description, 100) }}
@endif @if($reminder->category)
{{ $reminder->category }}
@endif
{{ $time }}
@endforeach
@endforeach
@foreach($calendarDays->slice(7) as $day)
{{ $day['day_name'] }}
{{ $day['jalali_date'] }} {{ $day['jalali_month'] }}
@foreach($day['reminders'] as $reminder) @php $colorClass = 'task-green'; if ($reminder->category === 'مقالات') { $colorClass = 'task-teal'; } elseif ($reminder->category === 'محصولات') { $colorClass = 'task-blue'; } elseif ($reminder->importance === 'high') { $colorClass = 'task-red'; } elseif ($reminder->importance === 'medium') { $colorClass = 'task-orange'; } $time = $reminder->date->format('H:i'); @endphp
{{ $reminder->title }}
@if($reminder->description)
{{ Str::limit($reminder->description, 100) }}
@endif @if($reminder->category)
{{ $reminder->category }}
@endif
{{ $time }}
@endforeach
@endforeach
@endsection