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

{{ app()->getLocale() == 'ar' ? '📂 أنواع المصروفات' : '📂 Expense Categories' }}

{{ app()->getLocale() == 'ar' ? 'إدارة فئات المصروفات المختلفة' : 'Manage expense types' }}

@forelse($categories as $category) @empty @endforelse
{{ app()->getLocale() == 'ar' ? 'الفئة' : 'Category' }} {{ app()->getLocale() == 'ar' ? 'النوع' : 'Type' }} {{ app()->getLocale() == 'ar' ? 'الحالة' : 'Status' }} {{ app()->getLocale() == 'ar' ? 'الإجراءات' : 'Actions' }}
{{ app()->getLocale() == 'ar' ? $category->name_ar : $category->name_en }}
{{ $category->type }} {{ $category->is_active ? (app()->getLocale() == 'ar' ? '✓ نشط' : '✓ Active') : (app()->getLocale() == 'ar' ? '✕ معطل' : '✕ Inactive') }}
@csrf @method('DELETE')
{{ app()->getLocale() == 'ar' ? 'لا توجد فئات' : 'No categories found' }}
@endsection