Skip to content

Commit

Permalink
updated data in Cron
Browse files Browse the repository at this point in the history
  • Loading branch information
neshanth committed Jan 12, 2025
1 parent a2b6844 commit 3ef1a2d
Showing 1 changed file with 50 additions and 48 deletions.
98 changes: 50 additions & 48 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,136 +23,138 @@ protected function schedule(Schedule $schedule)
DB::table("tasks")->where("user_id","=",$userId)->delete();
$tasks = [
[
'description' => 'Review project plan and finalize the details',
'due_date' => now()->addDays(2)->toDateString(),
'description' => 'Review the current project to ensure everything is on track. Check each team member’s progress and address any issues. Send a summary email with action items for the team.',
'due_date' => now()->toDateString(),
'status' => 0,
'task' => 'Project Review',
'task' => 'Project Status Review and Action Plan',
'user_id' => $userId,
'created_at' => now(),
'updated_at' => now(),
],
[
'description' => 'Complete the database migration script',
'due_date' => now()->addDays(4)->toDateString(),
'description' => 'Finalize the designs for the new feature. Make sure all feedback from the client is incorporated and ensure the designs are fully responsive. Prepare the design files for handoff to development.',
'due_date' => now()->addDays(1)->toDateString(),
'status' => 0,
'task' => 'Database Migration',
'task' => 'Finalize and Handoff New Feature Designs for chat application',
'user_id' => $userId,
'created_at' => now(),
'updated_at' => now(),
],
[
'description' => 'Go grocery shopping for the week',
'due_date' => now()->addDays(1)->toDateString(),
'status' => 0,
'task' => 'Grocery Shopping',
'description' => 'Test the latest release for any bugs or performance issues. Focus on critical areas like the payment gateway and dashboard functionalities. Report any bugs or improvements to the development team.',
'due_date' => now()->toDateString(),
'status' => 1, // Completed task
'task' => 'Conduct Release Testing and Report Issues',
'user_id' => $userId,
'created_at' => now(),
'updated_at' => now(),
],
[
'description' => 'Prepare presentation for client meeting',
'due_date' => now()->addDays(3)->toDateString(),
'description' => 'Prepare the presentation for the upcoming meeting. Focus on key project milestones and future goals. Ensure all visual elements are clear and aligned with the project timeline.',
'due_date' => now()->addDays(2)->toDateString(),
'status' => 0,
'task' => 'Client Presentation',
'task' => 'Create Presentation for Upcoming Meeting with sales team',
'user_id' => $userId,
'created_at' => now(),
'updated_at' => now(),
],
[
'description' => 'Attend yoga class',
'due_date' => now()->addDays(2)->toDateString(),
'description' => 'Organize a catch-up meeting with the marketing team. Review the ongoing campaigns and discuss improvements for the next quarter. Ensure the team is aligned with the new goals.',
'due_date' => now()->addDays(3)->toDateString(),
'status' => 0,
'task' => 'Yoga Session',
'task' => 'Marketing Team Meeting for Campaign Review at Residency Towers',
'user_id' => $userId,
'created_at' => now(),
'updated_at' => now(),
],
[
'description' => 'Respond to pending emails',
'due_date' => now()->addDays(1)->toDateString(),
'status' => 0,
'task' => 'Email Follow-up',
'description' => 'Handle customer support tickets. Prioritize urgent issues and provide solutions in a timely manner. Keep track of all support cases and ensure that each one is resolved.',
'due_date' => now()->toDateString(),
'status' => 1, // Completed task
'task' => 'Manage and Resolve Customer Support Tickets by 5pm',
'user_id' => $userId,
'created_at' => now(),
'updated_at' => now(),
],
[
'description' => 'Book flight tickets for vacation',
'due_date' => now()->addDays(7)->toDateString(),
'description' => 'Start the process of gathering data for the upcoming report. Collect information from all departments and ensure that the data is accurate. Organize everything to prepare for analysis.',
'due_date' => now()->addDays(4)->toDateString(),
'status' => 0,
'task' => 'Book Flight Tickets',
'task' => 'Gather Sales Data for Monthly Report by 4:30 PM',
'user_id' => $userId,
'created_at' => now(),
'updated_at' => now(),
],
[
'description' => 'Fix bug in user login system',
'due_date' => now()->addDays(2)->toDateString(),
'description' => 'Review the codebase for any outdated or deprecated functions. Replace them with more efficient solutions and run tests to make sure nothing breaks. Document the changes made for the team.',
'due_date' => now()->addDays(5)->toDateString(),
'status' => 0,
'task' => 'Bug Fix: User Login',
'task' => 'Refactor Codebase for Deprecated Jquery Functions',
'user_id' => $userId,
'created_at' => now(),
'updated_at' => now(),
],
[
'description' => 'Schedule team stand-up meeting',
'due_date' => now()->addDays(1)->toDateString(),
'description' => 'Prepare for the next team-building event. Research activity ideas, gather quotes, and plan logistics. Make sure to coordinate with the event organizer to ensure everything is set up.',
'due_date' => now()->addDays(6)->toDateString(),
'status' => 0,
'task' => 'Team Stand-up',
'task' => 'Organize Team-Building Event at Taj Hotel',
'user_id' => $userId,
'created_at' => now(),
'updated_at' => now(),
],
[
'description' => 'Buy birthday gift for friend',
'due_date' => now()->addDays(5)->toDateString(),
'description' => 'Complete the UI design for the new dashboard. Focus on user experience and make sure the design is clean and intuitive. Finalize the design elements for development handoff.',
'due_date' => now()->addDays(7)->toDateString(),
'status' => 0,
'task' => 'Friend\'s Birthday Gift',
'task' => 'Design UI for New E-commerce Dashboard',
'user_id' => $userId,
'created_at' => now(),
'updated_at' => now(),
],
[
'description' => 'Plan weekend getaway',
'due_date' => now()->addDays(6)->toDateString(),
'description' => 'Review the current marketing strategies and assess their effectiveness. Suggest improvements and propose new ideas to enhance visibility. Ensure alignment with the business goals.',
'due_date' => now()->addDays(1)->toDateString(),
'status' => 0,
'task' => 'Weekend Getaway',
'task' => 'Evaluate and Improve Marketing Strategies',
'user_id' => $userId,
'created_at' => now(),
'updated_at' => now(),
],
[
'description' => 'Design homepage layout',
'due_date' => now()->addDays(3)->toDateString(),
'status' => 0,
'task' => 'Homepage Design',
'description' => 'Prepare the office for an important client meeting. Tidy up the workspace, ensure all documents and equipment are ready, and set up a presentation area.',
'due_date' => now()->toDateString(),
'status' => 1, // Completed task
'task' => 'Office Preparation for Client Meeting',
'user_id' => $userId,
'created_at' => now(),
'updated_at' => now(),
],
[
'description' => 'Complete quarterly budget review',
'due_date' => now()->addDays(2)->toDateString(),
'description' => 'Complete reading the industry-related book for continuous learning. Take notes on valuable insights and implement them in your current workflow to improve productivity.',
'due_date' => now()->addDays(8)->toDateString(),
'status' => 0,
'task' => 'Budget Review',
'task' => 'Finish Reading Industry-Related Book',
'user_id' => $userId,
'created_at' => now(),
'updated_at' => now(),
],
// Personal Task 1
[
'description' => 'Call plumber for kitchen sink repair',
'due_date' => now()->addDays(4)->toDateString(),
'description' => 'Go to the airline website and book tickets for a vacation to Europe. Ensure that everything is in order and that there are enough seats available.',
'due_date' => now()->toDateString(),
'status' => 0,
'task' => 'Call Plumber',
'task' => 'Book Flight Tickets for Vacation',
'user_id' => $userId,
'created_at' => now(),
'updated_at' => now(),
],
// Personal Task 2
[
'description' => 'Watch the new movie release',
'due_date' => now()->addDays(3)->toDateString(),
'description' => 'Plan a workout routine for the week and stick to it. Include exercises targeting different muscle groups and ensure to include rest days. Make time each day to complete the workout.',
'due_date' => now()->toDateString(),
'status' => 0,
'task' => 'Movie Night',
'task' => 'Create and Follow Weekly Workout Plan',
'user_id' => $userId,
'created_at' => now(),
'updated_at' => now(),
Expand Down

0 comments on commit 3ef1a2d

Please sign in to comment.