@php
$statuses = ['Active','Under filing','Closed','Transferred','Rejected','Inactive','Abandon','Inquiry','*****'];
@endphp
{{-- Basic Dropdown Fields --}}
{{-- Second Row --}}
{{-- Client & Associate --}}
{{-- Country & Assigned Users --}}
{{-- Title & Numbers --}}
{{--
--}}
{{--
--}}
{{-- Status --}}
{{--
Deadline Tracker
@if (!empty($has_deadline))
@else
No deadline records found.
@endif
--}}
@foreach ($country_details as $country)
@endforeach
{{-- Attachment & Comments --}}
@if($pt_deadline && count($pt_deadline))
| Deadline Comment |
Deadline Date |
Remaining Days | {{-- ✅ العمود الجديد --}}
Created At |
@foreach ($pt_deadline as $index => $deadline)
@php
$remainingDays = \Carbon\Carbon::now()->diffInDays(\Carbon\Carbon::parse($deadline->date), false);
@endphp
| {{ $deadline->message }} |
{{ \Carbon\Carbon::parse($deadline->date)->format('Y-m-d') }} |
@if ($remainingDays >= 0)
{{ $remainingDays }} day(s) remaining
@else
Ended {{ abs($remainingDays) }} day(s) ago
@endif
|
{{ \Carbon\Carbon::parse($deadline->created_at)->format('Y-m-d') }} |
@endforeach
@endif
@if($histories && count($histories))
| # |
Type |
Comment |
Added By |
File |
Created At |
@foreach ($histories as $index => $history)
| {{ $index + 1 }} |
{{ $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') }} |
@endforeach
@endif
@if(Auth::user()->department_id==1 ||Auth::user()->role_id==1 )