{{ translate('messages.Incentive_Settings_for_Deliveryman') }}

{{ translate('messages.Motivate_deliverymen_to_achieve_daily_earning_targets_and_provide_additional_incentives_to_encourage_increased_deliveries.') }}

{{translate('Incentive_Settings')}}  
@forelse ($zone->incentives as $key => $incentive)
@if ($key == 0) @endif
@if ($key == 0) @endif
@csrf @method('delete')
@empty @endforelse
@csrf
@if (count($zone->incentives) == 0) @endif {{-- --}}
@if (count($zone->incentives) == 0) @endif
{{translate('Day Based Incentive')}}  
@php $day_based_incentive = collect($zone->incentive_schemes)->where('slug','day_based_incentive')->first(); $dayDetails = json_decode($day_based_incentive->details ?? '[]',true); $dayDetails = collect($dayDetails)->keyBy('day')->toArray(); @endphp
@csrf @php $days = [ 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday' ]; @endphp
@foreach($days as $day) @endforeach
Day No. Of Orders Needed Min Working Hours Fixed Amount ({{ \App\CentralLogics\Helpers::currency_symbol() }}) Status
{{ $day }}
{{--
{{ translate('Weekend Incentives') }}  
@csrf @php $weekend_scheme = collect($zone->incentive_schemes)->where('slug', 'weekend_based')->first(); $weekend_details = $weekend_scheme ? json_decode($weekend_scheme->incentive_details, true) : []; $monday = collect($weekend_details)->where('day', 'saturday')->first(); $sunday = collect($weekend_details)->where('day', 'sunday')->first(); @endphp


--}} {{--
{{ translate('Hour-Based Incentives') }}  
@csrf @php $hour_scheme = collect($zone->incentive_schemes)->where('slug', 'hour_based')->first(); $hour_details = $hour_scheme ? json_decode($hour_scheme->incentive_details, true) : []; @endphp
@if(!empty($hour_details)) @foreach($hour_details as $index => $slab)
@endforeach @endif
--}} {{--
{{ translate('Peak Hour Duration Incentives') }}  
@csrf @php $peak = collect($zone->incentive_schemes) ->where('slug','peak_hour_duration')->first(); $details = $peak ? json_decode($peak->incentive_details,true) : []; @endphp
@if(!empty($details)) @foreach($details as $i => $slab)
@endforeach @endif
--}}
{{ translate('Slot-Based Incentives') }}  
@csrf @php $slot_scheme = collect($zone->incentive_schemes) ->where('slug','slot_based')->first(); $details = $slot_scheme ? json_decode($slot_scheme->details,true) : []; $breakfast = collect($details)->where('slot_name','breakfast')->first(); $lunch = collect($details)->where('slot_name','lunch')->first(); $dinner = collect($details)->where('slot_name','dinner')->first(); @endphp
{{-- Breakfast --}}
{{-- Lunch --}}
{{-- Dinner --}}