Task Entry Task Entry
@csrf @method('post')
Task ID @php $task_id = DB::table('task_management_systems') ->latest('id') ->first(); if ($task_id) { $task_id = $task_id->id + 1; $task_id = date('Y') . '-' . str_pad($task_id, 5, '0', STR_PAD_LEFT); } else { $task_id = 1; $task_id = date('Y') . '-' . str_pad($task_id, 5, '0', STR_PAD_LEFT); } @endphp Date
Task Name Discription
Task Assign To @php if(Auth::user()->role_id == 1) { $model = App\Models\User::all(); } else { $model = App\Models\User::where('department_id', '=', Auth::user()->department_id)->where('id', '!=', 1)->get(); } $index = []; foreach ($model as $user) { $index[] = $user->picture; } @endphp
Deadline
Short Note
Back
@php $division_name = App\Models\Division::where('id', '=', Auth::user()->division_id)->first()->name; $department_name = App\Models\Department::where('id', '=', Auth::user()->department_id)->first()->name; $company_name = App\Models\Company::where('id', '=', Auth::user()->company_id)->first()->name; @endphp