@extends('layouts.app') @section('title', $contract->name) @section('content') Edit
@csrf @method('DELETE')
Contract Details

Supplier

@if($contract->supplier) {{ $contract->supplier->name }} @else — @endif

Value

{{ number_format($contract->value ?? 0, 2) }} {{ $contract->currency }}

Start Date

{{ optional($contract->start_date)->format('Y-m-d') }}

End Date

{{ optional($contract->end_date)->format('Y-m-d') }}

Renewal Date

{{ optional($contract->renewal_date)->format('Y-m-d') ?? '—' }}

@if($contract->notes)

Notes

{{ $contract->notes }}

@endif
@php $daysLeft = $contract->end_date ? now()->diffInDays($contract->end_date, false) : null; @endphp
@endsection