@if($module === 'student-fees')
| Student | Semester | Required | Paid | Status | Due | Actions |
@forelse($rows as $fee)
{{ $fee->student->name ?? 'Student' }} {{ $fee->student?->studentRecord?->program?->name }} |
{{ $fee->semester->name ?? '' }} |
{{ $m($fee->net_amount) }} |
{{ $m($fee->paid_amount) }} |
{{ ucfirst($fee->status) }} |
{{ $date($fee->due_date) }} |
View Edit |
@empty | No records found. |
@endforelse
@elseif($module === 'payments')
| Receipt | Student | Date | Method | Amount | Actions |
@forelse($rows as $payment)
{{ $payment->receipt_no }} {{ $payment->reference_number ?: $payment->transaction_id }} | {{ $payment->studentFee?->student?->name }} | {{ $date($payment->gregorian_date) }} {{ $payment->shamsi_date }} | {{ str_replace('_', ' ', ucfirst($payment->payment_method)) }} | {{ $m($payment->amount) }} | View Edit Print |
@empty | No records found. |
@endforelse
@elseif($module === 'teacher-salaries')
| Teacher | Period | Gross | Net | Status | Actions |
@forelse($rows as $payroll)
| {{ $payroll->employee->name ?? 'Teacher' }} | {{ $date($payroll->period_start) }} - {{ $date($payroll->period_end) }} | {{ $m($payroll->gross_salary) }} | {{ $m($payroll->net_salary) }} | {{ ucfirst($payroll->status) }} | View Edit Print |
@empty | No records found. |
@endforelse
@elseif($module === 'salary-advances')
| Employee | Date | Amount | Deducted | Remaining | Status | Actions |
@forelse($rows as $advance)
| {{ $advance->employee->name ?? 'Employee' }} | {{ $date($advance->advance_date) }} {{ $advance->shamsi_date }} | {{ $m($advance->amount) }} | {{ $m($advance->deducted_amount) }} | {{ $m($advance->remaining_amount) }} | {{ ucfirst($advance->approval_status) }} | View Edit Print |
@empty | No records found. |
@endforelse
@elseif($module === 'expenses')
| Date | Title | Category | Status | Amount | Actions |
@forelse($rows as $expense)
{{ $date($expense->expense_date) }} {{ $expense->shamsi_date }} | {{ $expense->title }} {{ $expense->supplier }} | {{ $expense->category->name ?? '' }} | {{ ucfirst($expense->approval_status) }} | {{ $m($expense->amount) }} {{ $expense->currency }} | View Edit @if($expense->attachment_path)Print@endif |
@empty | No records found. |
@endforelse
@elseif(in_array($module, ['teacher-registration', 'employee-registration'], true))
| Name | Email | Phone | Role / Type | Actions |
@forelse($rows as $user)
| {{ $user->name }} | {{ $user->email }} | {{ $user->phone }} | {{ $user->employee_type ?: $user->roles->pluck('name')->join(', ') }} | View Edit |
@empty | No records found. |
@endforelse
@elseif($module === 'student-cycle')
| Student | Program | Semester | Fee | Payments | Status | Actions |
@forelse($rows as $fee)
| {{ $fee->student->name ?? 'Student' }} | {{ $fee->student?->studentRecord?->program?->name }} | {{ $fee->semester->name ?? '' }} | {{ $m($fee->net_amount) }} | {{ $m($fee->payments->sum('amount')) }} | {{ ucfirst($fee->status) }} | View |
@empty | No records found. |
@endforelse
@elseif($module === 'teacher-cycle')
| Teacher | Email | Salary Type | Monthly | Daily | Hourly | Actions |
@forelse($rows as $teacher)
| {{ $teacher->name }} | {{ $teacher->email }} | {{ $teacher->salary_type }} | {{ $m($teacher->monthly_salary) }} | {{ $m($teacher->daily_rate) }} | {{ $m($teacher->hourly_rate) }} | View |
@empty | No records found. |
@endforelse
@elseif($module === 'assets')
| Code | Asset | Date | Location | Responsible | Price | Actions |
@forelse($rows as $asset)| {{ $asset->asset_code }} | {{ $asset->asset_name }} {{ $asset->category->name ?? '' }} | {{ $date($asset->purchase_date) }} | {{ $asset->location }} | {{ $asset->responsiblePerson->name ?? '' }} | {{ $m($asset->purchase_price) }} | View Edit |
@empty| No records found. |
@endforelse
@elseif($module === 'exchange')
| Date | Type | From | Rate | To | Reference | Actions |
@forelse($rows as $tx)| {{ $date($tx->transaction_date) }} | {{ ucfirst($tx->transaction_type) }} | {{ $m($tx->from_amount) }} {{ $tx->from_currency }} | {{ $tx->rate }} | {{ $m($tx->to_amount) }} {{ $tx->to_currency }} | {{ $tx->reference_number }} | View Edit |
@empty| No records found. |
@endforelse
@elseif($module === 'archive')
| No | Date | Type | Subject | From / To | File | Actions |
@forelse($rows as $doc)| {{ $doc->document_number }} | {{ $date($doc->document_date) }} {{ $doc->shamsi_date }} | {{ ucfirst($doc->document_type) }} | {{ $doc->subject }} | {{ $doc->sender ?: $doc->recipient }} | @if($doc->attachment_path)Open@endif | View Edit |
@empty| No records found. |
@endforelse
@elseif($module === 'reports')
| Student fee income | {{ $m($feeIncome) }} |
| Other income | {{ $m($otherIncome) }} |
| Salary expenses | {{ $m($salaryExpenses) }} |
| Operational and asset expenses | {{ $m($operationalExpenses) }} |
| Net profit / loss | {{ $m($netProfit) }} |
@endif
@if(isset($rows) && method_exists($rows, 'links'))
{{ $rows->links('pagination::bootstrap-4') }}
@endif