@extends('layouts.admin') @section('title', isset($disease) ? 'Edit Disease' : 'Add Disease') @section('content')
Back
{{ isset($disease) ? 'Edit Disease' : 'Add Disease' }}
@php $isLinked = isset($disease) ? $disease->applications()->exists() : false; @endphp
@csrf @if (isset($disease)) @method('POST') @endif
@if ($isLinked)
This disease is linked to existing applications and cannot be edited.
@endif
@endsection @push('scripts') @endpush