@extends('layouts.app') @section('content')

{{ \App\Helpers\TranslationHelper::transFromDatabase('Custom Fields', __('Custom Fields')) }}

@if(session('success')) @endif

{{ \App\Helpers\TranslationHelper::transFromDatabase('Define custom fields for patient records, appointments, and services.', __('تعريف حقول إضافية مخصصة لسجلات المرضى، المواعيد، والخدمات الطبية.')) }}

@forelse($customFields as $cf) @empty @endforelse
{{ __('اسم الحقل') }} {{ __('النموذج المرتبط') }} {{ __('نوع الحقل') }} {{ __('مطلوب؟') }} {{ __('العمليات') }}
{{ $cf->name }} @if($cf->related_model == 'patient') {{ __('سجل المريض') }} @elseif($cf->related_model == 'appointment') {{ __('المواعيد') }} @elseif($cf->related_model == 'service') {{ __('الخدمات الطبية') }} @else {{ $cf->related_model }} @endif @if($cf->type == 'text') {{ __('نص قصير') }} @elseif($cf->type == 'textarea') {{ __('نص طويل') }} @elseif($cf->type == 'select') {{ __('قائمة منسدلة') }} @elseif($cf->type == 'date') {{ __('تاريخ') }} @elseif($cf->type == 'number') {{ __('رقم') }} @else {{ $cf->type }} @endif {{ $cf->required ? __('نعم') : __('لا') }}
@csrf @method('DELETE')
{{ __('لا يوجد حقول مخصصة مضافة حالياً') }}
@endsection