{{-- {{dd($current_month_target)}} --}}

{{__('messages.Current Month Target')}}

branch_id branch_selected {{__('messages.All Branches')}} @foreach(\App\Models\Branch::all() as $branch) @endforeach
{{--
--}}
@if($current_month_target) @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 @else @for($i=0 ; $i<6 ; $i++)
{{__('messages.Empty Result')}}
@endfor @endif