@extends('backEnd.layouts.master') @section('title', 'My Performance') @push('styles') @endpush @section('content')

My Performance

{{ $range['label'] }} — আপনার calls, confirm, cancel, cross-sale
@can('staff.performance.view') All Employees @endcan
@include('backEnd.staff-performance.partials.filters', [ 'action' => route('admin.staff-performance.mine'), 'filter' => $filter, 'staffList' => null, 'userId' => 0, ])
Calls
{{ number_format($summary['calls']) }}
Confirmed
{{ number_format($summary['confirms']) }}
Cancelled
{{ number_format($summary['cancels']) }}
Cross Sales
{{ number_format($summary['cross_sales']) }}
Confirmed Amount
৳{{ number_format($summary['confirmed_amount'], 0) }}
@if($commissionSettings['enabled'] ?? false)
My Wallet
Available
৳{{ number_format($wallet['available'] ?? 0, 0) }}
Pending (not delivered)
৳{{ number_format($wallet['pending_commission'] ?? 0, 0) }}
Total Earned
৳{{ number_format($wallet['total_earned'] ?? 0, 0) }}
Total Withdrawn
৳{{ number_format($wallet['total_withdrawn'] ?? 0, 0) }}
Commission rate: {{ number_format($commissionSettings['commission_percent'] ?? 0, 2) }}% per extra cross-sale product line (after delivery). @if(!empty($commissionSettings['withdraw_note']))
{{ $commissionSettings['withdraw_note'] }} @endif
@csrf
Commission History
@forelse($commissions as $c) @php $orderStatus = $c->order ? (int) $c->order->order_status : null; $delivered = $orderStatus === \App\Models\Order::STATUS_DELIVERED; @endphp @empty @endforelse
Date Order Product Delivery Line ৳ % Commission Status
{{ $c->created_at->format('d M Y') }} #{{ $c->order?->invoice_id ?? $c->order_id }} {{ $c->product_name }} {{ $delivered ? 'Delivered' : ($c->order ? \App\Models\Order::statusLabel($orderStatus) : '—') }} ৳{{ number_format($c->line_total, 0) }} {{ number_format($c->commission_percent, 1) }}% ৳{{ number_format($c->commission_amount, 0) }} {{ $c->statusLabel() }}
No commission yet.
@if($withdrawRequests->isNotEmpty())
My Withdraw Requests
@foreach($withdrawRequests as $wr) @endforeach
DateAmountStatusNote
{{ $wr->created_at->format('d M Y') }} ৳{{ number_format($wr->amount, 0) }} {{ $wr->statusLabel() }} {{ $wr->employee_note ?: '—' }}
@endif @endif
Customer Support Hub → Call দিয়ে call log করুন (timer + outcome)। Cross-sale = confirm-এর আগে extra product add করলে auto track + commission pending হবে।
My Activity
@forelse($events as $event) @empty @endforelse
Time Type Order Amount Note
{{ $event->created_at->format('d M, g:i A') }} {{ $event->typeLabel() }} @if($event->order) #{{ $event->order->invoice_id ?? $event->order_id }} @else — @endif {{ $event->amount ? '৳'.number_format($event->amount, 0) : '—' }} {{ $event->meta['note'] ?? '—' }}
No activity yet for this period.
@if($events->hasPages()) @endif
@endsection