@extends('layouts.admin') @section('title', 'Contract Vault') @section('content')

Merchant Contract Vault

Secure storage for all merchant agreements and contracts

@forelse ($contracts as $contract) @empty @endforelse
Merchant Contract Type Start Date End Date Status Actions
{{ $contract->merchant->name }}
{{ $contract->contract_type ?? 'Service Agreement' }}
{{ \Carbon\Carbon::parse($contract->start_date)->format('M d, Y') }}
{{ \Carbon\Carbon::parse($contract->end_date)->format('M d, Y') }}
@php $isExpired = \Carbon\Carbon::parse($contract->end_date)->isPast(); $isExpiringSoon = \Carbon\Carbon::parse($contract->end_date)->diffInDays(now()) < 30 && !$isExpired; @endphp @if($isExpired) Expired @elseif($isExpiringSoon) Expiring Soon @else Active @endif
@if($contract->file_path) View @endif Edit
@csrf @method('DELETE')

No contracts found. Add your first contract to get started.

@endsection