@extends('backEnd.layouts.master') @section('title', 'Employee Reports') @push('styles') @include('backEnd.reports.partials.report-styles') @endpush @section('content') @php $queryBase = request()->except(['export']); $exportParams = array_merge($queryBase, ['export' => 'csv']); @endphp

Employee Reports

Performance, calls, confirm/cancel, commission, wallet, withdraw — আলাদা report + column select
Export CSV
@foreach($reportTypes as $key => $label) {{ $label }} @endforeach
@if($type === 'activity')
@endif @if($type === 'commission')
@endif @if($type === 'withdraw')
@endif
@if(!empty($filters['event_type']))@endif @if(!empty($filters['commission_status']))@endif @if(!empty($filters['withdraw_status']))@endif
@foreach($columnDefinitions as $key => $label) @endforeach
@if(!empty($summary))
@foreach($summary as $label => $value)
{{ ucwords(str_replace('_', ' ', $label)) }}
@if(is_float($value) && ! str_contains($label, 'rate') && ! str_contains($label, 'count') && $label !== 'employees' && $label !== 'rows') {{ number_format($value, str_contains($label, 'amount') || str_contains($label, 'commission') || str_contains($label, 'balance') || str_contains($label, 'earned') || str_contains($label, 'withdrawn') || str_contains($label, 'pending') || str_contains($label, 'paid') ? 0 : 2) }} @if(str_contains($label, 'amount') || str_contains($label, 'commission') || str_contains($label, 'balance') || str_contains($label, 'earned') || str_contains($label, 'withdrawn') || str_contains($label, 'pending') || str_contains($label, 'paid')) ৳ @endif @else {{ number_format($value) }} @endif
@endforeach
@endif
@foreach($selectedColumns as $col) @if(isset($columnDefinitions[$col])) @endif @endforeach @forelse($rows as $row) @foreach($selectedColumns as $col) @if(!isset($columnDefinitions[$col])) @continue @endif @php $val = is_array($row) ? ($row[$col] ?? '—') : '—'; $isMoney = str_contains($col, 'amount') || str_contains($col, 'balance') || str_contains($col, 'earned') || str_contains($col, 'withdrawn') || str_contains($col, 'commission') || $col === 'line_total' || $col === 'avg_confirm_value'; @endphp @endforeach @empty @endforelse
{{ $columnDefinitions[$col] }}
@if($val === '' || $val === null) — @elseif(is_numeric($val) && $isMoney) ৳{{ number_format((float) $val, fmod((float) $val, 1) != 0 ? 2 : 0) }} @else {{ $val }} @endif
No data for selected filters.
@endsection