@extends('pdf.layouts.daily_constraints.app') @section('title', __('Daily Constraint') . ' #' . ($header['constraint_number'] ?? '')) @section('content') @php $dir = $direction ?? 'rtl'; $isRtl = $dir === 'rtl'; $start = $isRtl ? 'right' : 'left'; $end = $isRtl ? 'left' : 'right'; @endphp {{-- ══ 1. INFO CARDS (Top 3 Boxes) ══ --}} {{-- mPDF: borders must be on
|
{{-- ENTRY DATE --}} |
|
{{-- NAME --}} |
|
|
| {{ $isRtl ? 'اسم الحساب' : 'ACCOUNT NAME' }} | {{ $isRtl ? 'وصف الحركة' : 'TRANSFER NAME' }} | {{ $isRtl ? 'مدين' : 'DEBIT' }} | {{ $isRtl ? 'دائن' : 'CREDIT' }} | {{ $isRtl ? 'مركز التكلفة' : 'COST CENTER' }} |
|---|---|---|---|---|
|
{{ $line['account_name'] }}
{{ $line['account_number'] }}
|
{{ $line['transfer_name'] }} |
@if($line['is_foreign'])
{{ number_format((float)$line['debit'], 2) }} {{ $line['curr_symbol'] }}
(Rate: {{ $line['curr_rate'] }})
@endif
{{ number_format((float)$line['debit_egp'], 2) }} {{ $isRtl ? 'ج.م' : 'EGP' }}
|
@if($line['is_foreign'])
{{ number_format((float)$line['credit'], 2) }} {{ $line['curr_symbol'] }}
(Rate: {{ $line['curr_rate'] }})
@endif
{{ number_format((float)$line['credit_egp'], 2) }} {{ $isRtl ? 'ج.م' : 'EGP' }}
|
{{ $line['cost_center_name'] ?: '-' }} |
| {{ $isRtl ? 'ملاحظات:' : 'Notes:' }} {{ $line['description'] }} | ||||
|
{{ $isRtl ? 'إجمالي المدين' : 'TOTAL DEBIT' }}
{{ number_format((float)($totals['total_debit'] ?? 0), 2) }}
{{ $isRtl ? 'ج.م' : 'EGP' }}
|
{{-- TOTAL CREDIT --}}
{{ $isRtl ? 'إجمالي الدائن' : 'TOTAL CREDIT' }}
{{ number_format((float)($totals['total_credit'] ?? 0), 2) }}
{{ $isRtl ? 'ج.م' : 'EGP' }}
|
{{-- DIFFERENCE (light bg) --}}
{{ $isRtl ? 'الفرق' : 'DIFFERENCE' }}
{{ number_format($diff, 2) }}
|