NASER develope task section
This commit is contained in:
Notes:
mobinesaghi
2026-04-23 14:42:17 +03:30
NASER add task functions undepended
@@ -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,
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user