@extends('layouts.print') @section('title', __('report.weekly')) @section('content') @include('reports.partials.letterhead')

@if (isset(auth()->activeBook()->report_titles['finance_detailed'])) {{ auth()->activeBook()->report_titles['finance_detailed'] }} @else {{ __('report.weekly') }} @endif @if (request('month') != '00') - {{ $currentMonthEndDate->isoFormat('MMMM Y') }} @else - {{ $currentMonthEndDate->isoFormat('Y') }} @endif

@php $lastWeekDate = null; @endphp @foreach($groupedTransactions as $weekNumber => $weekTransactions) @php $lastWeekDate = $lastWeekDate ?: $lastMonthDate; @endphp

{{ __('time.week') }} {{ $weekNumber + 1 }} ({{ $weekLabels[$weekNumber] }})

@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