@extends('layouts.app') @section('title', 'Client Contracts') @section('no-page-header') @section('content')
Manage client contracts and agreements
Total Contracts
{{ $contracts->count() }}
Active
{{ $contracts->where('status.name', 'active')->count() }}
Expired
{{ $contracts->where('status.name', 'expired')->count() }}
Total Value
${{ number_format($contracts->sum('value'), 2) }}
| Contract | Client | Type | Value | Duration | Status | Actions |
|---|---|---|---|---|---|---|
|
{{ $contract->name }}
{{ $contract->contract_number }}
|
{{ $contract->client?->name ?? '-' }} | {{ ucfirst($contract->type) }} | ${{ number_format($contract->value, 2) }} | {{ $contract->start_date?->format('M d, Y') }} - {{ $contract->end_date?->format('M d, Y') }} | {{ $contract->status?->name ?? 'Unknown' }} |
|
| No contracts found. | ||||||