@extends('patent::layouts.master') @php $countryName = $countries->firstWhere('id', $countryDetails->country_id)->name ?? ''; @endphp @section('title', "Edit $countryName Detail") @section('content')

Edit Ticket - Country: {{ $countries->firstWhere('id', $countryDetails->country_id)->name ?? '' }} | AIPT Ref: {{ $application->aipt_ref ?? '-' }} | Client Ref: {{ $application->client_ref ?? '-' }} | Title: {{ $application->application_title ?? '-' }}

@csrf
Deadline Tracker
@if (!empty($has_deadline))
@foreach ($has_deadline as $index => $dl) @endforeach
# Country Type Date Date Deadline (Days) Deadline Date Remaining Done Done BY
{{ $index + 1 }} {{ $dl['country'] }} {{ $dl['filing_type'] }} {{ $dl['filing_date'] }} {{ $dl['deadline_value'] }} @if ($dl['remaining_days'] < 0) {{ $dl['remaining_days'] }} days ago @elseif ($dl['remaining_days'] === 0) Today @else {{ $dl['remaining_days'] }} days left @endif @if (!$dl['is_done']) @else @endif @if($dl['done_by']) {{ \App\Models\User::find($dl['done_by'])->name ?? 'Unknown' }} @else — @endif
@else
No deadline records found.
@endif



📎 Attachments

@php $first = $countryDetails; $attachments = json_decode($first->attachment ?? '{}', true); @endphp @foreach ($attachments as $key => $value) @php $color = $value ? '#28a745' : '#dc3545'; @endphp
@endforeach
@if($histories && $histories->count())
design History
@foreach ($histories as $index => $history) @endforeach
# Type Comment Added By File Created At
{{ $histories->firstItem() + $index }} {{ $history->type }} {{ $history->comment }} {{ $history->added_by_name ?? 'N/A' }} @if($history->file_path) View @else No file @endif {{ \Carbon\Carbon::parse($history->created_at)->format('Y-m-d') }}
{{ $histories->withQueryString()->links() }}
@endif
@endsection @push('scripts') {{-- Select2 --}} @endpush