@extends('layouts.app') @section('title', 'المحاسبة - DOTS HR Pro') @push('styles') @endpush @section('content') @php $entries = $entries ?? collect(); $stats = $stats ?? []; $payrollRuns = $payrollRuns ?? collect(); $statusLabels = ['draft'=>'مسودة','posted'=>'مرحّل','exported'=>'مصدّر']; $statusBadges = ['draft'=>'badge-warning','posted'=>'badge-success','exported'=>'badge-info']; $sourceLabels = ['payroll'=>'رواتب','loan'=>'سلف','expense'=>'مصروفات','eos'=>'نهاية خدمة','manual'=>'يدوي']; $draftEntries = $entries->where('status', 'draft'); $postedEntries = $entries->where('status', 'posted'); $exportedEntries = $entries->where('status', 'exported'); @endphp
| # | رقم المرجع | الوصف | المصدر | مدين | دائن | التاريخ | الحالة | الإجراءات |
|---|---|---|---|---|---|---|---|---|
| {{ $entry->id }} | {{ $entry->reference_number ?? '-' }} | {{ $entry->description ?? '-' }} | {{ $sourceLabels[$entry->source ?? ''] ?? ($entry->source ?? '-') }} | {{ number_format($entry->total_debit ?? 0, 2) }} | {{ number_format($entry->total_credit ?? 0, 2) }} | {{ $entry->entry_date ?? '-' }} | {{ $statusLabels[$entry->status ?? ''] ?? ($entry->status ?? '-') }} |
لا توجد قيود محاسبية
استخدم زر "توليد قيد من الرواتب" لإنشاء قيود تلقائياً من مسيرات الرواتب