@extends('layouts.app') @section('title', __('report.yearly', ['year' => $year])) @section('content') {{ Form::open(['method' => 'get', 'class' => 'form-inline well well-sm']) }} {{ Form::label('year', __('report.view_yearly_label'), ['class' => 'control-label']) }} {{ Form::select('year', $years, $year, ['class' => 'form-control']) }} {{ Form::submit(__('report.view_report'), ['class' => 'btn btn-info btn-sm']) }} {{ link_to_route('reports.sales.yearly', __('report.this_year'), [], ['class' => 'btn btn-default btn-sm']) }} {{ Form::close() }}

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

Rp.
{{ __('time.month') }}

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

@php $chartData = []; @endphp @foreach(getMonths() as $monthNumber => $monthName) @php $any = isset($reports[$monthNumber]); $omzet = $any ? $reports[$monthNumber]->omzet : 0 @endphp @php $chartData[] = ['month' => monthId($monthNumber), 'value' => $omzet]; @endphp @endforeach
{{ __('time.month') }} {{ __('transaction.transaction') }} {{ __('report.omzet') }} {{ __('app.action') }}
{{ monthId($monthNumber) }} {{ $any ? $reports[$monthNumber]->count : 0 }} {{ format_rp($omzet) }} {{ link_to_route( 'reports.sales.monthly', __('report.view_monthly'), ['month' => $monthNumber, 'year' => $year], [ 'class' => 'btn btn-info btn-xs', 'title' => __('report.monthly', ['year_month' => monthId($monthNumber)]), 'title' => __('report.monthly', ['year_month' => monthId($monthNumber).' '.$year]), ] ) }}
{{ trans('app.total') }} {{ $reports->sum('count') }} {{ format_rp($reports->sum('omzet')) }}  
@endsection @section('ext_css') {{ Html::style(url('css/plugins/morris.css')) }} @endsection @push('ext_js') {{ Html::script(url('js/plugins/raphael.min.js')) }} {{ Html::script(url('js/plugins/morris.min.js')) }} @endpush @section('script') @endsection