@extends('layouts.app') @section('title', 'Laporan Tahunan : ' . $year) @section('content')

Laporan Tahunan : {{ $year }}

{!! Form::open(['method'=>'get','class'=>'form-inline well well-sm']) !!} {!! Form::select('year', $years, $year, ['class'=>'form-control']) !!} {!! Form::submit('Lihat Laporan', ['class'=>'btn btn-info']) !!} {!! link_to_route('reports.payments.yearly','Tahun ini',[],['class'=>'btn btn-default']) !!} {!! Form::close() !!}

Grafik Profit {{ $year }}

Rp.
Bulan

Detail Laporan

@foreach(getMonths() as $monthNumber => $monthName) count : 0; $cashin = $any ? $reports[$monthNumber]->cashin : 0; $cashout = $any ? $reports[$monthNumber]->cashout : 0; $profit = $any ? $reports[$monthNumber]->profit : 0; ?> monthId($monthNumber), 'value' => $profit]; ?> @endforeach
Bulan Jumlah Transfer Uang Masuk Uang Keluar Profit Pilihan
{{ monthId($monthNumber) }} {{ $count }} {{ formatRp($cashin) }} {{ formatRp($cashout) }} {{ formatRp($profit) }} {!! link_to_route( 'reports.payments.monthly', 'Lihat Bulanan', ['month' => $monthNumber, 'year' => $year], [ 'class'=>'btn btn-info btn-xs', 'title'=>'Lihat laporan bulanan ' . monthId($monthNumber) ] ) !!}
Jumlah {{ $reports->sum('count') }} {{ formatRp($reports->sum('cashin')) }} {{ formatRp($reports->sum('cashout')) }} {{ formatRp($reports->sum('profit')) }}
@endsection @section('ext_css') {!! Html::style(url('assets/css/plugins/morris.css')) !!} @endsection @section('ext_js') {!! Html::script(url('assets/js/plugins/morris/raphael.min.js')) !!} {!! Html::script(url('assets/js/plugins/morris/morris.min.js')) !!} @endsection @section('script') @endsection