@extends('layouts.dashboard') @section('dashboard-content')

Cashier Workstation

Accounting administrative workflow

Upload accounting documents and track all accounting activities (who, role, when).

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
@endif

Upload accounting document

@csrf

Recent accounting documents

@if($documents->isEmpty())

No accounting documents yet. Upload one above.

@else
@foreach($documents as $d) @endforeach
Reference Title Type Amount Uploaded by Date Actions
{{ $d->reference_number }} {{ Str::limit($d->title, 40) }} {{ str_replace('_', ' ', $d->document_type) }} {{ $d->amount !== null ? number_format($d->amount, 2) . ' ' . ($d->currency ?? '') : '—' }} {{ $d->uploaded_by ?? '—' }} {{ $d->uploaded_date?->format('d M Y H:i') ?? '—' }} View Edit
@endif

Accounting activity log

@if($activities->isEmpty())

No activities yet.

@else
@foreach($activities as $a) @php $doc = $a->accountingDocument; @endphp @endforeach
Reference Title Action By Role Date & time
{{ $doc ? $doc->reference_number : '—' }} {{ $doc ? Str::limit($doc->title, 40) : '—' }} {{ $a->action }} {{ $a->user_authority ?? '—' }} {{ $a->role_snapshot ?? '—' }} {{ $a->treated_at?->format('d M Y H:i') ?? '—' }}
@endif
@endsection