@extends('layouts.main') @section('page-title') {{ __('Profit & Loss Summary') }} @endsection @section('page-breadcrumb') {{ __('Report') }}, {!! __('Profit & Loss Summary') !!} @endsection @push('scripts') @endpush @section('page-action')
@endsection @section('content')
{{ Form::open(['route' => ['report.profit.loss.summary'], 'method' => 'GET', 'id' => 'report_profit_loss_summary']) }}
{{ Form::label('year', __('Year'), ['class' => 'form-label']) }} {{ Form::select('year', $yearList, isset($_GET['year']) ? $_GET['year'] : '', ['class' => 'form-control ']) }}
{{ Form::close() }}
{{ __('Report') }} :
{{ __('Profit & Loss Summary') }}
{{ __('Duration') }} :
{{ $filter['startDateRange'] . ' to ' . $filter['endDateRange'] }}
{{ __('Income') }}
@foreach ($month as $m) @endforeach @if (!empty($revenueIncomeArray)) @foreach ($revenueIncomeArray as $i => $revenue) @foreach ($revenue['amount'] as $j => $amount) @endforeach @endforeach @endif @if (!empty($invoiceIncomeArray)) @foreach ($invoiceIncomeArray as $i => $invoice) @foreach ($invoice['amount'] as $j => $amount) @endforeach @endforeach @endif
{{ __('Category') }}{{ $m }}
{{ __('Revenue : ') }}
{{ !empty($revenue['category']) ? $revenue['category'] : '' }} {{ currency_format_with_sym($amount) }}
{{ __('Invoice : ') }}
{{ !empty($invoice['category']) ? $invoice['category'] : '' }} {{ currency_format_with_sym($amount) }}
@foreach ($totalIncome as $income) @endforeach
{{ __('Total Income = Revenue + Invoice ') }}
{{ __('Total Income') }} {{ currency_format_with_sym($income) }}
{{ __('Expense') }}
@foreach ($month as $m) @endforeach @if (!empty($expenseArray)) @foreach ($expenseArray as $i => $expense) @foreach ($expense['amount'] as $j => $amount) @endforeach @endforeach @endif @if (!empty($billExpenseArray)) @foreach ($billExpenseArray as $i => $bill) @foreach ($bill['amount'] as $j => $amount) @endforeach @endforeach @endif @if (!empty($salExpenseArray) && module_is_active('Hrm') || !empty($salExpenseArray) && module_is_active('Hrm') && !empty($TrainingCostExpenseArray) && module_is_active('Training')) @foreach ($salExpenseArray as $i => $salexpensearray) @foreach ($salexpensearray['amount'] as $j => $amount) @endforeach @endforeach @if (module_is_active('Training')) @foreach ($TrainingCostExpenseArray as $i => $trainingcostexpensearray) @foreach ($trainingcostexpensearray['amount'] as $j => $amount) @endforeach @endforeach
{{ __('Category') }}{{ $m }}
{{ __('Payment : ') }}
{{ !empty($expense['category']) ? $expense['category'] : '' }} {{ currency_format_with_sym($amount) }}
{{ __('Bill : ') }}
{{ !empty($bill['category']) ? $bill['category'] : '' }} {{ currency_format_with_sym($amount) }}
{{ __('Employee Salary :') }} {{ currency_format_with_sym($amount) }}
{{ __('Training Cost :') }} {{ currency_format_with_sym($amount) }}
@foreach ($totalExpense as $expense) @endforeach
{{ __('Total Expense = Payment + Bill + Employee Salary + Training Cost') }}
{{ __('Total Expenses') }} {{ currency_format_with_sym($expense) }}
@else
@foreach ($totalExpense as $expense) @endforeach
{{ __('Total Expense = Payment + Bill + Employee Salary') }}
{{ __('Total Expenses') }} {{ currency_format_with_sym($expense) }}
@endif @else
@foreach ($totalExpense as $expense) @endforeach
{{ __('Total Expense = Payment + Bill') }}
{{ __('Total Expenses') }} {{ currency_format_with_sym($expense) }}
@endif
@foreach ($netProfitArray as $i => $profit) @endforeach
{{ __('Net Profit = Total Income - Total Expense ') }}
{{ __('Net Profit') }} {{ currency_format_with_sym($profit) }}
@endsection