NASER develope task section

This commit is contained in:
mobinesaghi
2026-04-23 14:27:18 +03:30
parent 74e0026529
commit ac019cbf52
Notes: mobinesaghi 2026-04-23 14:42:17 +03:30
NASER add task functions undepended
3 changed files with 180 additions and 208 deletions
@@ -97,8 +97,11 @@ class AttendanceController extends Controller
// $until_now = Carbon::now()->diffInSeconds(Carbon::parse($break->break_start));
}
$user->tasks = Tasks::where('created_by', $user->id)
->orWhereJsonContains('assignees', (string) $user->id)
->orderBy('target_date', 'desc')
->get();
//dd($user->tasks);
// dd($until_now);
return view('attendance.index', compact('user'))->with([
's' => $s,
+2
View File
@@ -5,6 +5,8 @@ namespace App\Http\Controllers;
use App\Models\Setting;
use App\Models\User;
use Illuminate\Support\Facades\Http;
use Carbon\Carbon;
use Morilog\Jalali\Jalalian;
abstract class Controller
{