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

إنشاء فاتورة جديدة

@if(isset($student)) @if($hasInvoice)
هذا الطالب لديه فاتورة بالفعل ولا يمكن إنشاء فاتورة أخرى.
@endif @if(!$hasInvoice)
بيانات الطالب

الاسم: {{ $student->fname }} {{ $student->lname }}

الصف: {{ $student->grade }}

الرسوم الدراسية للصف
@php $gradeFee = $fees->first(); $grade_amount = $gradeFee ? $gradeFee->amount_usd : 0; $registration = $registration_fee ?? 0; $baseTotal = $grade_amount + $registration; @endphp @if($gradeFee) @endif
البند المبلغ بالدولار
رسوم التسجيل {{ number_format($registration, 2) }} $
رسوم الصف {{ number_format($grade_amount, 2) }} $
المجموع الأساسي: {{ number_format($baseTotal, 2) }} $
@csrf
الإجمالي بعد الخصم: {{ number_format($baseTotal, 2) }} $
@endif @endif
@endsection