{{__('messages.Company Monthly Target')}}

gender branch_selected {{__('messages.gender')}} @foreach ($allGender as $gender) @endforeach
month branch_selected {{__('messages.Month')}} @for ($i = 1; $i <= 12; $i++) @endfor
year branch_selected {{__('messages.year')}}
category_id branch_selected {{__('messages.All Categories')}} @foreach(\App\Models\Category::where("active" ,1)->whereNull("category_id")->get() as $category) @endforeach
branch_id branch_selected {{__('messages.All Branches')}} @foreach(\App\Models\Branch::all() as $branch) @endforeach
@forelse ($monthly_target_points_all_branches as $monthly_target_point)
{{$monthly_target_point->category->name}} - {{$monthly_target_point->gender}} {{ $monthly_target_point->achived_order_points + $monthly_target_point->achived_follow_points +$monthly_target_point->achived_open_points }}
{{__('messages.planned_points')}}
{{ round($monthly_target_point->planned_points)}}
@php $remaining =$monthly_target_point->planned_points -( $monthly_target_point->achived_order_points + $monthly_target_point->achived_follow_points +$monthly_target_point->achived_open_points ); @endphp @if ( $remaining > 0 )

{{ $remaining}} {{__('messages.points left to achieve the required points')}}

@else

{{__('messages.you achieved the target')}} {{abs($remaining)}}

@endif {{--

{{__('messages.By')}} {{$monthly_target_point->last_updated_by_user->name}}

--}}
@empty @for($i=0 ; $i<6 ; $i++)
{{__('messages.Empty Result')}}
@endfor @endforelse