@extends('layouts.app') @section('title', __('accounting.journal')) @section('content')
{{ __('accounting.journal') }}
@csrf
{{ __('treasury.account') }}{{ __('accounting.debit') }}{{ __('accounting.credit') }}
{{ __('accounting.debit') }}: 0 {{ __('accounting.credit') }}: 0
@forelse($entries as $entry)
{{ $entry->number }} — {{ $entry->date->format('Y-m-d') }} {{ $entry->user->name ?? '' }}
@if($entry->description)
{{ $entry->description }}
@endif @foreach($entry->lines as $line) @endforeach
{{ $line->account->code ?? '' }} — {{ $line->account->name ?? '' }} {{ $line->debit > 0 ? money($line->debit) : '' }} {{ $line->credit > 0 ? money($line->credit) : '' }}
@empty

{{ __('app.no_data') }}

@endforelse {{ $entries->links() }}
@endsection @push('scripts') @endpush