@extends('admin.layouts.app') @section('title', __('admin.sidebar.treatment_plans')) @section('content') @php $statusLabel = is_object($treatmentPlan->status) && method_exists($treatmentPlan->status, 'label') ? $treatmentPlan->status->label() : ($treatmentPlan->status ? str_replace('_', ' ', ucfirst((string) $treatmentPlan->status)) : '-'); @endphp