@extends('master.app') @section('title', 'Cash Journal') @section('body')
Cash Journal
Income / Outgoing • Simple International UI
@include('general.valert') {{-- Summary --}}
Total Income
{{ number_format($sumIncome, 2) }}
Total Outgoing
{{ number_format($sumOutgoing, 2) }}
Balance
{{ number_format($balance, 2) }}
{{-- Optional quick filter (simple) --}}
@forelse($journals as $row) @empty @endforelse
# Title Type Date Income Outgoing Currency Actions
{{ $loop->iteration }} {{ $row->title }} {{ $row->type->title_en ?? ($row->type->title_ps ?? '-') }} {{ $row->date }} {{ number_format((float) $row->income, 2) }} {{ number_format((float) $row->outgoing, 2) }} {{ $row->currency->title_en ?? ($row->currency->title_ps ?? '-') }}
@csrf @method('DELETE')
No Data
{{ $journals->links('pagination::bootstrap-4') }}
@endsection @section('pageJs') @endsection