@extends('layouts.app') @section('title', 'سند حسابداری') @section('content') @can('accounting.manage') @if ($entry->isPosted())
@csrf
@endif @endcan
@if ($entry->isVoid())
این سند ابطال شده است ({{ $entry->void_reason }}). در گزارش‌ها محاسبه نمی‌شود.
@endif
@foreach ($entry->lines as $line) @endforeach
کد حسابنام حسابشرحبدهکاربستانکار
{{ $line->account?->code }} {{ $line->account?->name }} {{ $line->description }} {{ rm_money($line->debit) }} {{ rm_money($line->credit) }}
جمع {{ rm_money($entry->total_debit) }} {{ rm_money($entry->total_credit) }}

منبع: {{ $entry->source ?? 'دستی' }}

ثبت‌کننده: {{ $entry->creator?->name ?? '-' }}

تاریخ ثبت: {{ $entry->posted_at ? jdate($entry->posted_at, 'Y/m/d H:i') : '-' }}

وضعیت: {{ $entry->isPosted() ? 'ثبت شده' : 'ابطال شده' }}

@endsection