@extends('layouts.print')
@section('title', __('report.finance_detailed'))
@section('content')
@include('reports.partials.letterhead')
@if (isset(auth()->activeBook()->report_titles['finance_detailed']))
{{ auth()->activeBook()->report_titles['finance_detailed'] }}
@else
{{ __('report.finance_detailed') }}
@endif
@php
$lastWeekDate = null;
@endphp
@foreach($groupedTransactions as $weekNumber => $weekTransactions)
@php
$lastWeekDate = $lastWeekDate ?: $lastMonthDate;
@endphp
@include('reports.finance._internal_content_detailed')
@php
$lastWeekDate = Carbon\Carbon::parse($weekTransactions->last()->last()->date);
@endphp
@if ($weekNumber != $groupedTransactions->keys()->last())
@endif
@endforeach
@include('reports.finance._pdf_signature_content')
@if (Setting::for(auth()->activeBook())->get('has_pdf_page_number') != '0')
{{ __('report.page') }} {PAGENO}/{nb}
@endif
@endsection
@section('style')
@endsection