@extends('layouts.app') @section('title', __('report.year_to_year')) @section('content')

{{ __('report.sales_graph') }}

{{ Option::get('money_sign', 'Rp') }}
{{ __('time.month') }}

{{ __('report.detail') }}

@php $chartData = []; @endphp @foreach(get_years() as $year) @php $any = isset($reports[$year]); @endphp @php $chartData[] = ['year' => $year, 'value' => $profit]; @endphp @endforeach
{{ __('time.month') }} {{ __('payment.payment') }} {{ __('payment.cash_in') }} {{ __('payment.cash_out') }} {{ __('report.profit') }} {{ __('app.action') }}
{{ $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')) }}  
@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