@extends('layouts.admin')
@section('page-title')
{{ __('Calendar') }}
@endsection
@section('links')
@if (\Auth::guard('client')->check())
{{ __('Home') }}
@else
{{ __('Home') }}
@endif
{{ __('Calendar') }}
@endsection
@php
$logo = \App\Models\Utility::get_file('avatars/');
$logo_tasks = \App\Models\Utility::get_file('tasks/');
@endphp
@section('action-button')
@endsection
@section('content')
{{ __('Tasks') }}
@php
$date = Carbon\Carbon::now()->format('m');
$date1 = Carbon\Carbon::now()->format('y');
$this_month_task = App\Models\project::where('workspace', $currentWorkspace->id)->get();
@endphp
@foreach ($this_month_task as $task)
@php
$task_get = App\Models\task::where('project_id', $task->id)->get();
@endphp
@foreach ($task_get as $t)
@php
$month = date('m', strtotime($t->start_date));
$year = date('y', strtotime($t->start_date));
@endphp
@if ($date == $month && $date1 == $year)
-
{{ $t->title }}
{{ $t->start_date }} to {{ $t->due_date }}
@endif
@endforeach
@endforeach
@endsection
@if ($currentWorkspace)
@push('scripts')
@endpush
@endif