@extends('backend.partials.master') @section('title') {{ ___('label.to_do_list') }} {{ ___('label.list') }} @endsection @section('maincontent')
{{-- Filter bar — mirrors the Users list so both pages behave the same. Collapsed by default; the funnel button in the list head opens it. It starts open when a filter is already applied. --}} @php $todoActiveFilters = collect(request()->only(['title', 'user_id', 'status', 'date_from', 'date_to'])) ->filter(fn ($v) => $v !== null && $v !== '')->count(); @endphp
{{ ___('label.clear') }}

{{ ___('label.to_do_list') }}

@if (hasPermission('todo_create')) {{ ___('admin.no_image_f64dc8') }} {{ ___('menus.add') }} @endif
@forelse($all_todo as $key => $todo) @empty @endforelse
{{ ___('label.id') }} {{ ___('label.date') }} {{ ___('label.title') }} {{ ___('label.description') }} {{ ___('label.file') }} {{ ___('label.note') }} {{ ___('label.status') }} {{ ___('label.action') }}
{{++$key}} {{ $todo->date }} {{$todo->title}} {{\Str::limit($todo->description,100,' ...')}} {{-- Guard on ->original too: without it a todo with no file rendered a "Download" link pointing at the site root. --}} @if($todo->upload?->original) @if($todo->upload->type === 'image') @else {{ ___('label.download') }} @endif @else — @endif {{$todo->note}} {!! $todo->TodoStatus !!}
@if(hasPermission('todo_update') ) @endif @if(hasPermission('todo_delete') ) @endif
@if(count($all_todo)) @endif
{{-- @include('backend.todo.to_do_proccesing') @include('backend.todo.to_do_completed') --}}
@endsection() @push('scripts') @endpush