@extends('layouts.public_reports')
@section('subtitle', __('report.weekly'))
@section('content-report')
@php
$lastWeekDate = null;
@endphp
@foreach($groupedTransactions as $weekNumber => $weekTransactions)
@php
$lastWeekDate = $lastWeekDate ?: $lastMonthDate;
@endphp
@include('public_reports.finance._public_content_detailed')
@php
$lastWeekDate = Carbon\Carbon::parse($weekTransactions->last()->last()->date);
@endphp
@endforeach
@endsection