@extends('layouts.masterbeta') @section('title', 'Click ERP - Office Documents') @section('breadcrumbs') Offices {{ $location->city }} Documents @endsection @section('content')

{{ $location->city }}, {{ $location->country }}

Manage compliance files, leases, and local registrations.

@forelse($location->documents as $doc) @empty @endforelse
Document Name Format Validity Period Next Renewal Actions
{{ $doc->name }} {{ $doc->file_extension }} {{ $doc->validity_period }} @if($doc->validity_period === 'On Demand') N/A @else @php // Highlight if renewal is approaching within 30 days or past due $isUrgent = $doc->next_renewal_date && \Carbon\Carbon::parse($doc->next_renewal_date)->isPast() || \Carbon\Carbon::parse($doc->next_renewal_date)->diffInDays(now()) <= 30; @endphp @if($isUrgent) @endif {{ $doc->next_renewal_date ? \Carbon\Carbon::parse($doc->next_renewal_date)->format('M d, Y') : 'Not Set' }} @endif
No regional documents uploaded yet.
@endsection @push('modals') @endpush @push('scripts') @endpush