@extends('layouts.app') @section('title', 'مستحقات المعلمين') @section('content')
احتساب عمولات المعلمين بناءً على نسبة الخصم المسجلة في الموارد البشرية
المستحقات المعلقة
{{ number_format($pendingPayouts, 2) }} USD
| المعلم | الدورة | الطلاب | سعر الدورة | النسبة | المبيعات | مستحق المعلم | صافي الإيراد | الحالة | |
|---|---|---|---|---|---|---|---|---|---|
| {{ $p->teacher_name ?? '—' }} | {{ $p->course_name }} | {{ $p->student_count }} | {{ number_format($p->course_price, 2) }} | {{ $p->cut_percent }}% | {{ number_format($p->student_count * $p->course_price, 2) }} | {{ number_format($p->amount, 2) }} | {{ number_format(($p->student_count * $p->course_price) - $p->amount, 2) }} | {{ $p->status === 'pending' ? 'معلق' : 'مدفوع' }} | @if ($p->status === 'pending') @endif |
| لا توجد مستحقات | |||||||||