@extends('pdf.layouts.daily_constraints.app') @section('title', __('Daily Constraint') . ' #' . ($header['constraint_number'] ?? '')) @section('content')
{{ __('Constraint No') }}: {{ $header['constraint_number'] ?? '-' }} {{ __('Date') }}: {{ $header['date'] ?? '-' }}
{{ __('Reference No') }}: {{ $header['ref_number'] ?? '-' }} {{ __('Description') }}: {{ $header['description'] ?? '-' }}

{{-- 2. جدول الحركات (الوسط) --}} @foreach($transactions as $line) {{-- اسم الحساب حسب اللغة --}} {{-- المبالغ --}} {{-- مركز التكلفة أو البيان --}} @endforeach {{-- 3. الإجماليات (أسفل الجدول) --}}
{{ __('Account No') }} {{ __('Account Name') }} {{ __('Debit') }} {{ __('Credit') }} {{ __('Cost Center') }}
{{ $line['account_number'] }} {{ $line['account_name'] }} {{ number_format($line['debit'], 2) }} {{ number_format($line['credit'], 2) }} {{ $line['cost_center_name'] ?: '-' }}
{{ __('Total Debit & Credit') }} {{ number_format($totals['total_debit'], 2) }} {{ number_format($totals['total_credit'], 2) }}
@endsection ```