|
|
@ -32,30 +32,30 @@ |
|
|
</thead> |
|
|
</thead> |
|
|
<tbody> |
|
|
<tbody> |
|
|
@php $chartData = []; @endphp |
|
|
@php $chartData = []; @endphp |
|
|
@foreach(get_months() as $monthNumber => $monthName) |
|
|
|
|
|
|
|
|
@foreach(get_months() as $month_number => $monthName) |
|
|
@php |
|
|
@php |
|
|
$any = isset($reports[$monthNumber]); |
|
|
|
|
|
$omzet = $any ? $reports[$monthNumber]->omzet : 0 |
|
|
|
|
|
|
|
|
$any = isset($reports[$month_number]); |
|
|
|
|
|
$omzet = $any ? $reports[$month_number]->omzet : 0 |
|
|
@endphp |
|
|
@endphp |
|
|
<tr> |
|
|
<tr> |
|
|
<td class="text-center">{{ monthId($monthNumber) }}</td> |
|
|
|
|
|
<td class="text-center">{{ $any ? $reports[$monthNumber]->count : 0 }}</td> |
|
|
|
|
|
|
|
|
<td class="text-center">{{ monthId($month_number) }}</td> |
|
|
|
|
|
<td class="text-center">{{ $any ? $reports[$month_number]->count : 0 }}</td> |
|
|
<td class="text-right">{{ format_rp($omzet) }}</td> |
|
|
<td class="text-right">{{ format_rp($omzet) }}</td> |
|
|
<td class="text-center"> |
|
|
<td class="text-center"> |
|
|
{{ link_to_route( |
|
|
{{ link_to_route( |
|
|
'reports.sales.monthly', |
|
|
'reports.sales.monthly', |
|
|
__('report.view_monthly'), |
|
|
__('report.view_monthly'), |
|
|
['month' => $monthNumber, 'year' => $year], |
|
|
|
|
|
|
|
|
['month' => $month_number, 'year' => $year], |
|
|
[ |
|
|
[ |
|
|
'class' => 'btn btn-info btn-xs', |
|
|
'class' => 'btn btn-info btn-xs', |
|
|
'title' => __('report.monthly', ['year_month' => monthId($monthNumber)]), |
|
|
|
|
|
'title' => __('report.monthly', ['year_month' => monthId($monthNumber).' '.$year]), |
|
|
|
|
|
|
|
|
'title' => __('report.monthly', ['year_month' => monthId($month_number)]), |
|
|
|
|
|
'title' => __('report.monthly', ['year_month' => monthId($month_number).' '.$year]), |
|
|
] |
|
|
] |
|
|
) }} |
|
|
) }} |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
|
@php |
|
|
@php |
|
|
$chartData[] = ['month' => monthId($monthNumber), 'value' => $omzet]; |
|
|
|
|
|
|
|
|
$chartData[] = ['month' => monthId($month_number), 'value' => $omzet]; |
|
|
@endphp |
|
|
@endphp |
|
|
@endforeach |
|
|
@endforeach |
|
|
</tbody> |
|
|
</tbody> |
|
|
|