@extends('layouts.app', ['pageSlug' => 'TodoBoard']) @section('content')
All Todos
@if (isset($todos)) @foreach($todos as $key => $list) @endforeach @endif
# Title Created By Date Complete Status Status Action
{{$key+1}} {{ucfirst(\Str::limit($list->task,20))}}
{{ucfirst($list->board->title)}} @if($list->priority == 'h') High @elseif($list->priority == 'm') Medium @else Low @endif
{{ucfirst($list->user->name)}} Assigned On: {{$list->assigned_on != null ? date('d M Y',strtotime($list->assigned_on)) : ''}}
Due On: {{$list->due_on != null ? date('d M Y',strtotime($list->due_on)) : ''}}
Completed On: {{$list->completed_on != null ? date('d M Y',strtotime($list->completed_on)) : ''}}
Checked On: {{$list->checked_on != null ? date('d M Y',strtotime($list->checked_on)) : ''}}
{{$list->is_checked == 1 ? 'Checked & Complete' : ($list->is_complete == 1 ? 'Complete' : 'Not Complete')}}
@endsection @push('js') @endpush