@extends('admin.layouts.app') @section('title', get_setting('site_name').' | '.$fundLabel.' '.__('Employee Report')) @section('content') @php $openDate = $period['start']->format('d.m.Y'); $closeDate = $period['end']->format('d.m.Y'); $hideProfitColumns = $hideProfitColumns ?? false; @endphp
{{ $fundLabel }} — {{ __('Employee Based Report') }}

{{ __('Finance year') }}: {{ $openDate }} — {{ $closeDate }}

@if(! $hideProfitColumns)
@endif @unless(\App\Support\BranchWiseFeature::appliesToUser())
@endunless
boolean('hide_zero_rows'))>

{{ __('Balance before profit') }} = {{ __('Opening') }} + {{ __('Collection') }} − {{ __('Return') }} (+ {{ __('other ledger movements') }}). @if(! $hideProfitColumns) {{ __('Profit') }} = {{ __('posted interest for the year, or balance × profit ratio when interest is not posted.') }} @endif {{ __('Date rule') }}: {{ __('payroll entries use payslip salary month; all other entries use ledger entry date.') }}

@if(! $hideProfitColumns) @endif @forelse($rows as $row) @if(! $hideProfitColumns) @endif @empty @endforelse @if(count($rows) > 0) @if(! $hideProfitColumns) @endif @endif
SL # {{ $fundShortLabel }} # SID # {{ __('Name of Staff') }} {{ __('Designation') }} {{ __('Opening Balance') }}
({{ $openDate }})
{{ $fundShortLabel }} {{ __('Collection During the year') }} {{ $fundShortLabel }} {{ __('Return During the year') }} {{ $fundShortLabel }} {{ __('Balance') }}
({{ $closeDate }})
{{ __('Profit Ratio') }} {{ __('Profit this Year') }}{{ __('Closing Balance') }}
({{ $closeDate }})
{{ __('Remarks') }}
{{ $row['sl'] }} {{ $row['cpf_no'] }} {{ $row['sid'] }} {{ $row['name'] }} {{ $row['designation'] }} {{ number_format($row['opening_balance'], 2) }} {{ number_format($row['collection'], 2) }} {{ number_format($row['returns'], 2) }} {{ number_format($row['balance_before_profit'], 2) }}{{ number_format($row['profit_ratio'] * 100, 4) }}% {{ number_format($row['profit'], 2) }}{{ number_format($row['closing_balance'], 2) }} {{ $row['remarks'] }}
{{ __('No employees match these filters.') }}
{{ __('Total') }} {{ number_format($totals['opening_balance'], 2) }} {{ number_format($totals['collection'], 2) }} {{ number_format($totals['returns'], 2) }} {{ number_format($totals['balance_before_profit'], 2) }} {{ number_format($totals['profit'], 2) }}{{ number_format($totals['closing_balance'], 2) }}
@endsection