@extends('layouts.dashboard') @section('title', 'Task Management') @section('content')

Tasks

One-Time Task Management All Submitted Task Report
entries

Tasks

@foreach ($tasks as $task) @endforeach
S/N Task Title Task Info Assigned Users Added By Actions
{{ $tasks->firstItem() + $loop->index }} {{ $task->name }}
    @foreach(explode("\n", $task->description) as $point) @if(trim($point) !== '')
  • {{ $point }}
  • @endif @endforeach
@foreach($task->assignedUsers as $user)
{{ $user->name }}
@php $days = json_decode($user->pivot->days, true); @endphp Days: {{ is_array($days) ? implode(', ', $days) : '-' }}
@endforeach
{{ $task->createdBy->name ?? '-' }}
{{ $tasks->links() }}
@endsection