@extends('layouts.app') @section('title', __('accounting.create_journal_entry')) @section('content') {{ __('accounting.create_journal_entry') }} @if(auth()->user()->can('create_manual_journal') || auth()->user()->can('account.access')) @csrf {{-- تفاصيل القيد --}} {{ __('accounting.entry_details') }} {{ __('accounting.entry_date') }} * @error('entry_date') {{ $message }} @enderror {{ __('accounting.period') }} — {{ __('accounting.auto_detect_period') }} — @foreach($periods as $id => $label) {{ $label }} @endforeach {{ __('accounting.reference') }} {{ __('accounting.memo') }} {{-- بنود القيد --}} {{ __('accounting.lines') }} {{ __('accounting.add_line') }} {{ __('accounting.account') }} * {{ __('accounting.debit') }} {{ __('accounting.credit') }} {{ __('accounting.memo') }} @php $old_lines = old('lines', [ ['account_id' => '', 'debit' => '', 'credit' => '', 'memo' => ''], ['account_id' => '', 'debit' => '', 'credit' => '', 'memo' => ''], ]); @endphp @foreach($old_lines as $index => $line) {{ __('accounting.select_account') }} @foreach($accounts as $id => $label) {{ $label }} @endforeach @endforeach {{ __('accounting.total') }} 0.00 0.00 {{-- template مخفي لأسماء الحسابات --}} {{ __('accounting.select_account') }} @foreach($accounts as $id => $label) {{ $label }} @endforeach @endif @endsection @section('javascript') @endsection