@section('page-title', 'Contracts Report')

Contracts Report

View and export employee contracts

← Back to Reports
Clear

Active Contracts

{{ $activeContracts }}

Expiring Soon (30 days)

{{ $expiringSoon }}

{{ $contracts->count() }} contracts found

@forelse($contracts as $contract) @empty @endforelse
Employee Type Position Start Date End Date Salary Status
{{ $contract->employee->first_name ?? '' }} {{ $contract->employee->last_name ?? '' }} {{ ucfirst($contract->contract_type) }} {{ $contract->position }} {{ $contract->start_date->format('M d, Y') }} {{ $contract->end_date ? $contract->end_date->format('M d, Y') : 'Ongoing' }} ${{ number_format($contract->salary, 2) }} @php $status = $contract->status; $color = 'gray'; if($contract->status === 'active' && $contract->end_date && $contract->end_date < now()) { $status = 'expired'; $color = 'red'; } elseif($contract->status === 'active') { $color = 'green'; } elseif($contract->status === 'terminated') { $color = 'orange'; } @endphp {{ ucfirst($status) }}
No contracts found matching the selected filters.