@extends('layouts.app') @section('title', __('report.expense_report')) @section('css') {!! Charts::styles(['highcharts']) !!} @endsection @section('content')

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

@component('components.filters', ['title' => __('report.filters')]) {!! Form::open(['url' => action('ReportController@getExpenseReport'), 'method' => 'get' ]) !!}
{!! Form::label('location_id', __('purchase.business_location') . ':') !!} {!! Form::select('location_id', $business_locations, null, ['class' => 'form-control select2', 'style' => 'width:100%']); !!}
{!! Form::label('category_id','Category:') !!} {!! Form::select('category', $categories, null, ['placeholder' => __('report.all'), 'class' => 'form-control select2', 'style' => 'width:100%', 'id' => 'category_id']); !!}
{!! Form::label('trending_product_date_range', __('report.date_range') . ':') !!} {!! Form::text('date_range', @format_date('first day of this month') . ' ~ ' . @format_date('last day of this month') , ['placeholder' => __('lang_v1.select_a_date_range'), 'class' => 'form-control', 'id' => 'trending_product_date_range', 'readonly']); !!}
{!! Form::close() !!} @endcomponent
@component('components.widget', ['class' => 'box-primary']) {!! $chart->html() !!} @endcomponent
@endsection @section('javascript') {!! Charts::assets(['highcharts']) !!} {!! $chart->script() !!} @endsection