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

{{ __('Create incentive rule') }}

{{ __('Rewards are automatically added to the wallet when approved monthly sales reach a rule threshold.') }}

@csrf
@foreach($rules as $rule)

{{ $rule->name }}

{{ __('Monthly approved sales threshold') }} ৳{{ number_format($rule->threshold_amount, 2) }} · {{ __('Reward') }} ৳{{ number_format($rule->reward_amount, 2) }}

@if($rule->is_active)
@csrf @method('DELETE')
@else{{ __('Inactive') }}@endif
@csrf @method('PUT')
@endforeach

{{ __('Recent incentive payouts') }}

@forelse($payouts as $payout)@empty@endforelse
{{ __('Employee / member') }}{{ __('Amount') }}{{ __('Reference') }}{{ __('Date') }}
{{ $payout->user->name }}৳{{ number_format($payout->amount, 2) }}{{ $payout->reference }}{{ $payout->created_at->format('M d, Y') }}
{{ __('No incentive payouts yet.') }}
{{ $payouts->links() }}
@endsection