@extends('layouts.main') @section('page-title') {{ __('Income Summary') }} @endsection @section('page-breadcrumb') {{ __('Report') }}, {{ __('Income Summary') }} @endsection @push('scripts') @endpush @section('page-action')
@endsection @section('content')
{{ Form::open(array('route' => array('report.income.summary'),'method' => 'GET','id'=>'report_income_summary')) }}
{{ Form::label('year', __('Year'), ['class' => 'form-label']) }} {{ Form::select('year',$yearList,isset($_GET['year'])?$_GET['year']:date('Y'), array('class' => 'form-control ')) }}
{{ Form::label('category', __('Category'), ['class' => 'form-label']) }} {{ Form::select('category',$category,isset($_GET['category'])?$_GET['category']:'', array('class' => 'form-control ','placeholder' => 'Select Category')) }}
{{ Form::label('customer', __('Customer'), ['class' => 'form-label']) }} {{ Form::select('customer',$customer,isset($_GET['customer'])?$_GET['customer']:'', array('class' => 'form-control ','placeholder' => 'Select Customer')) }}
{{ Form::close() }}
{{__('Report')}} :
{{__('Income Summary')}}
@if($filter['category']!= __('All'))
{{__('Category')}} :
{{$filter['category']}}
@endif @if($filter['customer']!= __('All'))
{{__('Customer')}} :
{{$filter['customer']}}
@endif
{{__('Duration')}} :
{{$filter['startDateRange'].' to '.$filter['endDateRange']}}
@foreach($monthList as $month) @endforeach @foreach($incomeArr as $i=>$income) @foreach($income['data'] as $j=>$data) @endforeach @endforeach @foreach($invoiceArray as $i=>$invoice) @foreach($invoice['data'] as $j=>$data) @endforeach @endforeach @foreach($chartIncomeArr as $i=>$income) @endforeach
{{__('Category')}}{{$month}}
{{__('Revenue :')}}
{{!empty($income['category']) ? $income['category'] :''}}{{ currency_format_with_sym($data)}}
{{__('Invoice :')}}
{{!empty($invoice['category']) ? $invoice['category'] :''}}{{currency_format_with_sym($data)}}
{{__('Income = Revenue + Invoice :')}}
{{__('Total')}}
{{currency_format_with_sym($income)}}
@endsection