@extends('layouts.app') @section('title', __('report.year_to_year')) @section('content')
| {{ __('time.month') }} | {{ __('payment.payment') }} | {{ __('payment.cash_in') }} | {{ __('payment.cash_out') }} | {{ __('report.profit') }} | {{ __('app.action') }} | @php $chartData = []; @endphp @foreach(get_years() as $year) @php $any = isset($reports[$year]); @endphp
|---|---|---|---|---|---|
| {{ $year }} | {{ $any ? $reports[$year]->count : 0 }} | {{ format_money($any ? $reports[$year]->cashin : 0) }} | {{ format_money($any ? $reports[$year]->cashout : 0) }} | {{ format_money($profit = $any ? $reports[$year]->profit : 0) }} | {{ link_to_route( 'reports.payments.yearly', __('report.view_yearly'), ['month' => $year, 'year' => $year], [ 'class' => 'btn btn-info btn-xs', 'title' => __('report.yearly', ['year' => $year]), ] ) }} |
| {{ trans('app.total') }} | {{ $reports->sum('count') }} | {{ format_money($reports->sum('cashin')) }} | {{ format_money($reports->sum('cashout')) }} | {{ format_money($reports->sum('profit')) }} |