@extends('layouts.admin') @section('title', 'Configuration') @section('content')

Configuration

Manage delivery man payment and notification settings

@if(session('success'))
{{ session('success') }}
@endif

Delivery Man Configuration

Payment structure and notification preferences

@csrf @method('PUT')

Payment Configuration

Choose how delivery men will be compensated for their services

Orders above this amount get free delivery

Delivery Settings

Auto Assign Orders

Automatically assign orders to available delivery men

Notification Configuration

Send Email Notifications

Automatically send email updates to delivery men

Send OTP Verification

Require OTP verification for sensitive operations

Changes will take effect immediately upon saving

Current Settings

Payment Type
{{ ucfirst(str_replace('_', ' ', $config['payment_type'] ?? 'Salary')) }}
Default Commission
{{ $config['commission_type'] == 'percentage' ? $config['default_commission'] . '%' : 'DT' . number_format($config['default_commission'] ?? 0, 2) }}
Delivery Fee
DT{{ number_format($config['delivery_fee'] ?? 0, 2) }}
Free Delivery Above
DT{{ number_format($config['free_delivery_threshold'] ?? 0, 2) }}
Max Radius
{{ $config['max_delivery_radius'] ?? 10 }} km
Est. Delivery Time
{{ $config['estimated_delivery_time'] ?? 30 }} min
Max Orders/Man
{{ $config['max_orders_per_delivery_man'] ?? 5 }}
Auto Assign
{{ ($config['auto_assign'] ?? false) ? 'Enabled' : 'Disabled' }}
Email Notifications
{{ ($config['send_mail'] ?? false) ? 'Enabled' : 'Disabled' }}
OTP Verification
{{ ($config['send_otp'] ?? false) ? 'Enabled' : 'Disabled' }}

Need Help?

These settings control how delivery men are compensated and notified. Changes apply globally to all delivery operations.

@endsection