{{ App\Models\Setting::first()->pdf_ministry_title ?? '' }}

{{ App\Models\Setting::first()->pdf_manager_title ?? '' }}

{{ App\Models\Setting::first()->pdf_office_title ?? '' }}

{{ App\Models\Setting::first()->title ?? '' }}

{{ App\Models\Setting::first()->pdf_program_title ?? '' }}

بيانات الميزانية

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

البنود

@forelse ($budget->lines as $line) @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) @empty @endforelse
الاسم الوظيفة

{{ $user->name }}

{{ $user->jobTitle->name ?? '' }}