@extends('layouts.main') @section('page-title') {{ __('Expense Summary') }} @endsection @section('page-breadcrumb') {{ __('Report') }}, {{ __('Expense Summary') }} @endsection @push('scripts') @endpush @section('page-action')
@endsection @section('content')
{{ Form::open(['route' => ['report.expense.summary'], 'method' => 'GET', 'id' => 'report_expense_summary']) }}
{{ Form::label('year', __('Year'), ['class' => 'form-label']) }} {{ Form::select('year', $yearList, isset($_GET['year']) ? $_GET['year'] : date('Y'), ['class' => 'form-control ', 'placeholder' => 'Select Year']) }}
{{ Form::label('category', __('Category'), ['class' => 'form-label']) }} {{ Form::select('category', $category, isset($_GET['category']) ? $_GET['category'] : '', ['class' => 'form-control ', 'placeholder' => 'Select Category']) }}
{{ Form::label('vendor', __('Vendor'), ['class' => 'form-label']) }} {{ Form::select('vendor', $vendor, isset($_GET['vendor']) ? $_GET['vendor'] : '', ['class' => 'form-control ', 'placeholder' => 'Select Vendor']) }}
{{ Form::close() }}
{{ __('Report') }} :
{{ __('Expense Summary') }}
@if ($filter['category'] != __('All'))
{{ __('Category') }} :
{{ $filter['category'] }}
@endif @if ($filter['vendor'] != __('All'))
{{ __('Vendor') }} :
{{ $filter['vendor'] }}
@endif
{{ __('Duration') }} :
{{ $filter['startDateRange'] . ' to ' . $filter['endDateRange'] }}
@foreach ($monthList as $month) @endforeach @foreach ($expenseArr as $i => $expense) @foreach ($expense['data'] as $j => $data) @endforeach @endforeach @foreach ($billArray as $i => $bill) @foreach ($bill['data'] as $j => $data) @endforeach @endforeach @foreach ($purchaseArray as $i => $purchase) @foreach ($purchase['data'] as $j => $data) @endforeach @endforeach @if (module_is_active('Hrm') || module_is_active('Hrm') && module_is_active('Training')) @foreach ($EmpSalary as $j => $empsal) @endforeach @if (module_is_active('Training')) @foreach ($TrainingCost as $j => $trainingcost) @endforeach @else @endif @else @endif @foreach ($chartExpenseArr as $i => $expense) @endforeach
{{ __('Category') }}{{ $month }}
{{ __('Payment :') }}
{{ !empty($expense['category']) ? $expense['category'] : '' }}{{ currency_format_with_sym($data) }}
{{ __('Bill :') }}
{{ !empty($bill['category']) ? $bill['category'] : '' }}{{ currency_format_with_sym($data) }}
{{ __('Purchase :') }}
{{ !empty($purchase['category']) ? $purchase['category'] : '' }}{{ currency_format_with_sym($data) }}
{{ __('Employee Salary :') }}
{{ __('Employee Salary') }}{{ currency_format_with_sym($empsal) }}
{{ __('Training Cost :') }}
{{ __('Training Cost') }}{{ currency_format_with_sym($trainingcost) }}
{{ __('Expense = Payment + Bill + Employee Salary + Training Cost :') }}
{{ __('Expense = Payment + Bill + Employee Salary :') }}
{{ __('Expense = Payment + Bill + Purchase :') }}
{{ __('Total') }}
{{ currency_format_with_sym($expense) }}
@endsection