@extends('layouts.bootstrap') @section('title', 'Edit Document Type') @section('content')

Edit Document Type

Modify document type: {{ $documentType->name }}

Back to Document Types
Document Type Information
@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
Enter a clear, descriptive name for the document type
@error('description')
{{ $message }}
@enderror
Help users understand what this document is and its requirements
@error('is_active')
{{ $message }}
@enderror
Only active document types appear in tender forms
@error('sort_order')
{{ $message }}
@enderror
Lower numbers appear first in forms
@if($documentType->requirements_count > 0)
Usage Information: This document type is currently used in {{ $documentType->requirements_count }} tender(s). Changes will affect existing tenders.
@endif
Cancel
Current Information
ID:
{{ $documentType->id }}
Status:
@if($documentType->is_active) Active @else Inactive @endif
Order:
{{ $documentType->sort_order }}
Used In:
{{ $documentType->requirements_count ?? 0 }} tenders
Created:
{{ $documentType->created_at->format('M d, Y') }}
Updated:
{{ $documentType->updated_at->format('M d, Y') }}
Danger Zone
@if(($documentType->requirements_count ?? 0) == 0)

This document type is not used in any tenders and can be safely deleted.

@csrf @method('DELETE')
@else

This document type cannot be deleted because it's used in {{ $documentType->requirements_count }} tender(s).

@endif
@endsection