@extends('backend.template.layouts.template-base') @section('title', 'Delivery Team - Commission Settings') @php $blocks = [ ['key' => 'delivery_reward', 'title' => 'Delivery Commission', 'icon' => 'ri-truck-line', 'unit' => 'per delivery', 'desc' => 'Each delivery to a customer is one delivery, irrespective of the number of salads, orders or family-member subscriptions in the bag. Paid to the delivery person who delivered, once per customer per day.'], ['key' => 'referral_reward', 'title' => 'Referral Commission', 'icon' => 'ri-user-shared-line', 'unit' => 'per referred customer per day', 'desc' => 'When a customer referred by a delivery person receives a delivery, the referring delivery person is paid once per customer per day, irrespective of the number of orders. A family plan of 3 members is one customer: ₹5 per day, not ₹15. Paid whoever delivers.'], ]; @endphp @section('styles') @endsection @section('content')

Commission Settings

Flat amounts that apply to every delivery person.

Delivery Team Report
@if(session('success')) @endif @if($errors->any()) @endif
@csrf
@foreach($blocks as $b)
{{ $b['title'] }}

{{ $b['desc'] }}

₹
{{ $b['unit'] }}
@error($b['key'])
{{ $message }}
@enderror
@endforeach
Cancel
Current Amounts
Delivery commission₹{{ number_format($settings['delivery_reward'], 2) }} per delivery
Referral commission₹{{ number_format($settings['referral_reward'], 2) }} per customer per day
How commission is counted
  • Only orders and subscription days marked Delivered with a delivery person assigned count.
  • Everything delivered to the same customer on the same day by the same delivery person is one delivery.
  • If A delivers to a customer referred by B, A gets the delivery commission and B gets the referral commission. If B delivers, B gets both.
  • Changing an amount re-values past days too — the report always applies the current amount, so note payouts already made.
@endsection