@extends('patent::layouts.master') @section('title', 'All Deadlines') @section('content') @php $results = collect($results); $doneResults = $results->where('is_done', true)->sortBy('remaining_days'); $notDoneResults = $results->where('is_done', false)->sortBy('remaining_days'); @endphp

Deadline Tracker

{{-- Not Done Table --}}
🔴 Deadlines Not Done
@php $notDone = $results->where('is_done', false)->sortBy('remaining_days')->values(); @endphp @foreach($notDone as $i => $row) @endforeach
# Ref Country Method Filing Type Filing Date Deadline Value Deadline Date Remaining Done Done By Edit
{{ $i + 1 }} {{ $row['aipt_ref'] }} {{ $row['country'] }} {{ $row['method'] }} {{ $row['filing_type'] }} {{ $row['filing_date'] }} {{ $row['deadline_value'] }} {{ $row['deadline_date'] }} @if($row['remaining_days'] < 0) {{ $row['remaining_days'] }} days @else {{ $row['remaining_days'] }} days @endif @if(Auth::user()->department_id==1 ||Auth::user()->role_id==1 )
@csrf @method('PUT')
@endif
— @if(Auth::user()->department_id==1 ||Auth::user()->role_id==1 ) Edit @endif
{{-- Done Table --}}
✅ Deadlines Done
@php $done = $results->where('is_done', true)->sortBy('remaining_days')->values(); @endphp @foreach($done as $i => $row) @endforeach
# Ref Country Method Filing Type Filing Date Deadline Value Deadline Date Remaining Done Done By Edit
{{ $i + 1 }} {{ $row['aipt_ref'] }} {{ $row['country'] }} {{ $row['method'] }} {{ $row['filing_type'] }} {{ $row['filing_date'] }} {{ $row['deadline_value'] }} {{ $row['deadline_date'] }} @if($row['remaining_days'] < 0) {{ $row['remaining_days'] }} days @else {{ $row['remaining_days'] }} days @endif {{ \App\Models\User::find($row['done_by'])->name ?? 'Unknown' }} Edit
@endsection