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

{{ __('report.sales_graph') }} {{ $months[$month] }} {{ $year }}

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

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

@php $chartData = []; @endphp @foreach(month_date_array($year, $month) as $dateNumber) @php $any = isset($reports[$dateNumber]); $count = $any ? $reports[$dateNumber]->count : 0; $subtotal = $any ? $reports[$dateNumber]->amount : 0; @endphp @if ($any) @endif @php $chartData[] = ['date' => $dateNumber, 'value' => ($subtotal) ]; @endphp @endforeach
{{ __('time.date') }} {{ __('transaction.transaction') }} {{ __('report.omzet') }} {{ __('app.action') }}
{{ date_id($date = $year.'-'.$month.'-'.$dateNumber) }} {{ $count }} {{ format_rp($subtotal) }} {{ link_to_route( 'reports.sales.daily', __('report.view_daily'), ['date' => $date], [ 'class' => 'btn btn-info btn-xs', 'title' => __('report.daily', ['date' => date_id($date)]), ] ) }}
{{ __('app.total') }} {{ $reports->sum('count') }} {{ format_rp($reports->sum('amount')) }}  
@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