@extends('layouts.app') @section('title', 'تقرير توزيع التكلفة') @section('content')
توزيع الموظفين والرواتب على مراكز التكلفة
| الرمز | مركز التكلفة | الموظفون | الرواتب الشهرية | الرواتب السنوية | الميزانية | الاستخدام | المتبقي |
|---|---|---|---|---|---|---|---|
| {{ $item['cost_center']->code }} | {{ $item['cost_center']->name }} | {{ $item['employee_count'] }} | {{ number_format($item['monthly_salary'], 0) }} | {{ number_format($item['annual_salary'], 0) }} | {{ number_format($item['cost_center']->annual_budget, 0) }} |
@php $u = $item['budget_usage']; @endphp
|
{{ number_format($item['remaining'], 0) }} |
| الإجمالي | {{ collect($reportData)->sum('employee_count') }} | {{ number_format(collect($reportData)->sum('monthly_salary'), 0) }} | {{ number_format($totalSalaries, 0) }} | {{ number_format($totalBudget, 0) }} | {{ $totalBudget > 0 ? round(($totalSpent / $totalBudget) * 100, 1) : 0 }}% | {{ number_format($totalBudget - $totalSpent, 0) }} | |
لا توجد مراكز تكلفة نشطة
| الرمز | الاسم | القسم | الراتب الأساسي | إجمالي الحزمة |
|---|---|---|---|---|
| {{ $emp->employee_code }} | {{ $emp->first_name }} {{ $emp->last_name }} | {{ $emp->department->name ?? '—' }} | {{ number_format($emp->basic_salary, 0) }} | {{ number_format($emp->basic_salary + ($emp->housing_allowance ?? 0) + ($emp->transport_allowance ?? 0) + ($emp->other_allowances ?? 0), 0) }} |
وأكثر... (إجمالي {{ $unassigned->count() }} موظف)
@endifتكلفة الرواتب الشهرية لغير المعيّنين: {{ number_format($unassignedSalary, 0) }} ر.س