@extends('layout.app') @section('title') {{ __('الميزانية') }} @stop @section('css') @endsection @section('content')
{{-- --}}

اسم الميزانية:

{{ $budget->name }}

العام الدراسي:

{{ $budget->year->school_year ?? '' }}

الفصل الدراسي:

{{ $budget->semester }}

المخصص المالي للميزانية:

{{ $budget->price }}

@php $total_price = 0; foreach ($budget->bills as $bill) { $total_price += (float) $bill->totel_price_with_tax; } $r_price = $budget->price - $total_price; @endphp

المخصص المالي المصروف:

{{ $budget->price - $r_price }}

المخصص المالي المتبقي:

{{ $r_price }}


@forelse ($budget->lines as $line) last) class="border-bottom" @endif> @php $b_price = 0; $line_bills = App\Models\Bill::where([ 'line_id' => $line->id, 'budget_id' => $budget->id, ])->get(); foreach ($line_bills as $key => $bill) { # code... $b_price = $bill->totel_price_with_tax; } @endphp @empty @endforelse
البند المخصص المالي المبلغ المصروف المبلغ المتبقي تصدير

{{ $line->name }}

{{ $line->pivot->price }} {{ $b_price }} {{ (float) $line->pivot->price - (float) $b_price }} تصدير البند
لم يتم اضافة البنود
@forelse ($budget->users as $user) last) class="border-bottom" @endif> @empty @endforelse
الاسم الوظيفة

{{ $user->name }}

{{ $user->jobTitle->name ?? '' }}
لا يوجد
@endsection