@if ($is_history)
                                    | 
                                        @if(now()->startOfDay()->gt(\Carbon\Carbon::parse($incentive->date)) && $incentive->status=='pending')
                                            
                                        @endif
                                     | 
                                @endif
                                {{$k+$incentives->firstItem()}} | 
                                {{$incentive->deliveryman->f_name.' '.$incentive->deliveryman->l_name}} | 
                                {{$incentive->zone->name}} | 
                                {{-- {{str_pad((int)($incentive->working_hours/60), 2, '0', STR_PAD_LEFT)}}:{{str_pad((int)($incentive->working_hours % 60), 2, '0', STR_PAD_LEFT)}} |  --}}
                                {{-- {{\App\CentralLogics\Helpers::format_currency($incentive->zone->min_pay)}} |  --}}
                                {{\App\CentralLogics\Helpers::format_currency($incentive->today_earning)}} | 
                                {{-- {{\App\CentralLogics\Helpers::format_currency($incentive->today_earning)}} |  --}}
                                {{\App\CentralLogics\Helpers::format_currency($incentive->incentive)}} | 
                                {{-- 
                                    @if((now()->startOfDay()->gt(\Carbon\Carbon::parse($incentive->date)) || $incentive->zone && now()->gt(\Carbon\Carbon::parse($incentive->zone->closing_time))) && $incentive->status=='pending')
                                        
                                    @elseif (!$is_history)
                                        {{\App\CentralLogics\Helpers::format_currency($incentive->subsidy)}}
                                    @else
                                        {{\App\CentralLogics\Helpers::format_currency(($incentive->today_earning >= $incentive->min_pay_subsidy) ? 0 : ($incentive->min_pay_subsidy - $incentive->today_earning - $incentive->incentive))}}
                                    @endif
                                 |  --}}
                                {{ $incentive->date }} | 
                                
                                    @if($incentive->status=='pending')
                                        
                                    @elseif($incentive->status=='approved')
                                        
                                    @else
                                        
                                    @endif
                                 | 
                                @if ($is_history)
                                    
                                        @if(now()->startOfDay()->gt(\Carbon\Carbon::parse($incentive->date)))
                                        
                                            {{--  
                                             --}}
                                             
                                            {{--  
                                             --}}
                                            {{--  
                                             --}}
                                          
                                        @endif
                                     | 
                                @endif
                            
                        @endforeach