@extends('layouts.app') @section('title', __('Incentive dashboard')) @section('content')

{{ now()->format('F Y') }}

{{ __('Your incentive progress') }}

{{ __(auth()->user()->isEmployee() ? 'This month approved lead sales' : 'This month approved personal sales') }}

৳{{ number_format($monthlySales, 2) }}

@forelse($rules as $rule) @php($progress = min(100, ($monthlySales / max(1, (float) $rule->threshold_amount)) * 100))

{{ $rule->name }}

{{ __(auth()->user()->isEmployee() ? 'Assigned lead sales threshold' : 'Personal sales threshold') }}

{{ __('Target') }}: ৳{{ number_format($rule->threshold_amount, 2) }}

{{ number_format($progress, 1) }}%{{ __('Reward') }} ৳{{ number_format($rule->reward_amount, 2) }}
@empty
{{ __('There are no active incentive rules.') }}
@endforelse

{{ __('Incentives are credited by an administrator after verifying your qualification.') }} {{ __('Paid this month') }}: ৳{{ number_format($paidIncentives, 2) }}

@endsection