@extends('layouts.app') @section('title', 'Laporan Tahunan : ' . $year) @section('content')
{{ Form::open(['method' => 'get', 'class' => 'form-inline well well-sm']) }} {{ Form::label('year', 'Laporan Tahunan per', ['class' => 'control-label']) }} {{ Form::select('year', $years, $year, ['class' => 'form-control']) }} {{ Form::submit('Lihat Laporan', ['class' => 'btn btn-info btn-sm']) }} {{ link_to_route('reports.payments.yearly', 'Tahun ini', [], ['class' => 'btn btn-default btn-sm']) }} {{ Form::close() }}| Bulan | Jumlah Transfer | Uang Masuk | Uang Keluar | Profit | Pilihan | @foreach(getMonths() as $monthNumber => $monthName)
|---|---|---|---|---|---|
| {{ monthId($monthNumber) }} | {{ $any ? $reports[$monthNumber]->count : 0 }} | {{ formatRp($any ? $reports[$monthNumber]->cashin : 0) }} | {{ formatRp($any ? $reports[$monthNumber]->cashout : 0) }} | {{ formatRp($profit = $any ? $reports[$monthNumber]->profit : 0) }} | {{ link_to_route( 'reports.payments.monthly', 'Lihat Bulanan', ['month' => $monthNumber, 'year' => $year], [ 'class' => 'btn btn-info btn-xs', 'title' => 'Lihat laporan bulanan ' . monthId($monthNumber) ] ) }} |
| {{ trans('app.total') }} | {{ $reports->sum('count') }} | {{ formatRp($reports->sum('cashin')) }} | {{ formatRp($reports->sum('cashout')) }} | {{ formatRp($reports->sum('profit')) }} |