@php
$one_month_ago = date('m-d');
$task_complete = DB::table('targets')
->where('issue_status', 'Close')
->where('assign_date', '>', $one_month_ago)
->count();
$task_running = DB::table('targets')
->where('issue_status', 'Open')
->where('assign_date', '>', $one_month_ago)
->count();
$task_pending = DB::table('targets')
->where('issue_status', 'Pending')
->where('assign_date', '>', $one_month_ago)
->count();
$task_vendor = DB::table('targets')
->where('issue_status', 'Pending')
->where('issue_handed_over_to_vendor', '!=', null)
->where('assign_date', '>', $one_month_ago)
->count();
@endphp
Task Complete
{{ $task_complete ?? 0 }}
Task Running
{{ $task_running ?? 0 }}
Task Pending
{{ $task_pending ?? 0 }}
Task in Vendor Hand
{{ $task_vendor ?? 0 }}
@php
$user = auth()->user();
@endphp
Warning: Undefined variable $user in D:\NTG_App\www\Planning_budgeting\resources\views\layouts\Manager.blade.php on line 90
Warning: Attempt to read property "joining_date" on null in D:\NTG_App\www\Planning_budgeting\resources\views\layouts\Manager.blade.php on line 90
Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in D:\NTG_App\www\Planning_budgeting\resources\views\layouts\Manager.blade.php on line 90
Warning: Undefined variable $user in D:\NTG_App\www\Planning_budgeting\resources\views\layouts\Manager.blade.php on line 91
Warning: Attempt to read property "dob" on null in D:\NTG_App\www\Planning_budgeting\resources\views\layouts\Manager.blade.php on line 91
Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in D:\NTG_App\www\Planning_budgeting\resources\views\layouts\Manager.blade.php on line 91