@extends('layouts.app') @section('title', 'Journal Entries') @section('content')

Journal Entries

@can('create journal entries') Create Journal Entry @endcan
@forelse($journalEntries as $entry) @empty @endforelse
Entry Number Date Description Status Created By Actions
{{ $entry->entry_number }} {{ $entry->entry_date->format('M d, Y') }} {{ \Illuminate\Support\Str::limit($entry->description, 50) }} {{ ucfirst($entry->status) }} {{ $entry->creator->name }} @if($entry->status == 'draft') @can('post journal entries')
@csrf
@endcan @endif @if($entry->status == 'posted') @can('void journal entries')
@csrf
@endcan @endif
No journal entries found for this period.
@endsection