Find Jobs
Hire Freelancers

I need a larval coder

$25-50 USD / hour

In Progress
Posted almost 5 years ago

$25-50 USD / hour

We are trying to return results in a reports to structure, where only reporting users that share a common value (from two separate data tables) are displayed. We are using larvel. In the controller we are defining "Reporting Users" as users (from a common users table), who are active, report to another "user_id", who both share the exact same "scorecard_type_id" from ( $dbPrefix.'access_permissions' and $dbPrefix.'scored_in'). We have tried using an inner-join, but with errors. This is for a linux server, running MySQL, and PHP, under a larvel stack. Image of Scored_in table (column ids used: "userid" and "score_card_type_id): Image of Access_Permissions table (column ids used: "id" and "score_card_type_id"): For the Users Table: the Id that we are referencing is "id" There are three data tables that are used in this scenario, a common users table, a prefix database table for scored_in (this table defines the score_card_type_id users are scored in), and a prefix database table for access_permissions (this is the table that defines the score_card_type_id a user can score other users in) Where we are currently: You can see here Teacher 1 can see Student 2, and Student 3, but they should not be able to see that student 2 and Student three, in Teacher 2 or Teacher 3 classes, because Teacher 1 does not teach Student 2 or Student 3. What we want: We want to the user (Teacher 1) to only see Students that report to Teacher 1, and are scored_in the score_card_type_id(s) Teacher 1 has in access_permissions score_card_type_id(s) function getAllReportingUsers($userId, &$allUsers) { $dbPrefix = $this->getDBPrefix(null); $user_profiles = user_profile::join('users', '[login to view URL]', '=', 'user_profile.user_id') ->where('users.is_active', '=', 1) ->where('user_profile.reports_to', '=', $userId) // Shit! //->select(DB::raw('distinct('.$dbPrefix.'scored_in.score_card_type_id)')) //->where($dbPrefix.'scored_in.score_card_type_id', '=', $dbPrefix.'access_permission.score_card_type_id') ->get(); foreach ($user_profiles as $reportUserId){ $userReportTo_id = $reportUserId->user_id; if($userReportTo_id == $userId) { array_push($allUsers, $userReportTo_id); return false; } if($userReportTo_id>0){ array_push($allUsers, $userReportTo_id); $this->getAllReportingUsers($userReportTo_id, $allUsers); }else{ return false; } We would like the result to be the viewing user is only able to see reporting users whose "scorecard_type_id" from the "scored_in" data table = the viewing users "scorecard_type_id" from the access_permissions data table. We also want to add a column in ScoreCardType, that will make some of the rows "global" along with a permission that allows some users to see the global scorecards with only the users that report to them.
Project ID: 20822838

About the project

24 proposals
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
24 freelancers are bidding on average $33 USD/hour for this job
User Avatar
Hello there Full Stack Expert development team is ready to serve you. Please check my profile and message me for more details. Thanks
$40 USD in 40 days
5.0 (198 reviews)
8.6
8.6
User Avatar
Good Day, Hi, I have a strong command in Laravel and working as a Web developer from last 15 years and I have reviewed the whole details I am confident to fix your all issues. I want you to come to the inbox and discuss with me all the problems in more detail, I am ready to start work on your project. Awaiting your response. Many Thanks, David
$35 USD in 40 days
4.8 (173 reviews)
9.1
9.1
User Avatar
Hello there I have more than 5 years of development experience and a great team, we can complete your project with clean code and best practices To be able to give clients what exactly they want, Please check my profile and message me for more details. Thanks!
$25 USD in 40 days
4.9 (469 reviews)
8.2
8.2
User Avatar
Hi, I can understand the queries better if I get to know the complete DB structure. If I see the codes from the middle, without knowing the relationship, architecture and objective, I wouldn't be able to help. Looking forward. Regards, Mit-
$25 USD in 10 days
4.9 (35 reviews)
7.7
7.7
User Avatar
Hi As you can see from my Freelancer profile, I enjoy working with clients that take good quality and design seriously. I'd love to chat with you over online chatting to discuss the job more detail. I look forward to our chat. Have a great day! Thanks Best regards
$37 USD in 40 days
5.0 (25 reviews)
7.2
7.2
User Avatar
Hello. I can do your task. Could we discuss the project in more detail. About me: My programming experience is 9 years. I did projects both in the development team and alone. I am pleased to perform work of any complexity and type. Be sure that all your tasks will be completed. Also I provide 2 months of support.
$34 USD in 8 days
5.0 (41 reviews)
6.8
6.8
User Avatar
Hi,sir. Thanks for taking your valuable time for reviewing my proposal.I'm a senior developer with over 10 years of experience. I think I can be a candidate for your project. If you can give me your project, I'll do my best to complete it in a short time. I am confident of your project - I need a larval coder And I have been very familiar with skills such as Java, MySQL, Software Architecture, Linux, PHP and so on.
$41 USD in 1 day
5.0 (7 reviews)
5.3
5.3
User Avatar
We are a Ukrainian software development company that employs several passionate engineers. Our main focus is scientific software, but we also do web and mobile development. In the last few years we have completed many complex projects for our customers that cover the areas of health care, IoT, ML (computer vision and natural language processing), AR/VR, CAD/CAE, video production equipment, simulation in neuroscience, financial markets, HPC and more. We develop desktop apps, back end, front end (including design), mobile (including cross-platform) and firmware. QA and test coverage are provided as well as post-release support. Our developers are trained on internal projects that are presented on our website. They have diversified skill sets that cover the most popular frameworks, tools and languages.
$25 USD in 40 days
4.9 (2 reviews)
5.3
5.3
User Avatar
Hi. I have review your project description. I have full experiences in Laravel Development. I am very interested in your project and also ready to start work immediately. Hoping for your soon Reply. Thank You Regard.
$37 USD in 40 days
4.9 (26 reviews)
5.1
5.1
User Avatar
✅✅✅✅✅ Hello! Thanks for your job. As a senior developer, I have 5+ years of experience in developing and building web apps. I have ever built backend, APIs and also front end too. Being familiar with PHP 7+ and Mysql I am sure I can do your project skillfully. MVC and routing are in my hands. Main Skills : - Laravel, CodeIgniter, CakePHP, Yii - Python, Django, Flask - CSS3, SASS, SCSS, Boostrap 3, 4 - API integrate, AJAX, Mongodb, Mysql - Firebase, AWS, Heroku I can show you my working urls and git repo if you want. Wish you could not lose an amazing opportunity to work with an amazing developer. Wanna discuss about project more detail on chat. Regards. ~_~
$30 USD in 40 days
4.8 (16 reviews)
4.5
4.5
User Avatar
Hi, I can instantly start working on your project. I have hands-on experiences on Laravel and have a sound understanding of what you're looking for. Let's hop on a chat to discuss this further. Thanks, Jaz
$30 USD in 40 days
5.0 (5 reviews)
3.8
3.8
User Avatar
Hi there . I am interested in your project. I have 7 years expertise in working with Laravel . I can help you with the issue you are facing.
$25 USD in 20 days
5.0 (4 reviews)
2.7
2.7
User Avatar
Nice to meet you I am an Amazon Cloud Architect for the web infrastructure serving 90 million page impressions and 12 TB Internet traffic per month. The AWS services I use are EC2, ELB, MySQL RDS, VPC, CloudFront, ElastiCache, CloudWatch, CloudFormation, OpsWorks, ElasticBeanstalk, CodeDeploy, S3, SES, SQS and SNS. I have 20 years of Linux SysAdmin experience. I currently use Apache, Nginx, Ldirectord, MySQL, Perl, PHP, Memcached, Sphinx, Bind, Typo3, WordPress, Send-mail, Postfix, NFS, Samba, Snort, Vsftpd, aide, Nagios, Cacti, Puppet and a bunch of other traditional Linux software. I am good at java,linux,mysql,php,software-architecture If you’re looking for a developer that’s truly an expert, driven by passion, not afraid to take on a challenge, and will be there with you every step of the way then look no further as I’m your guy.
$42 USD in 40 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Flower Mound, United States
5.0
2
Payment method verified
Member since Aug 16, 2019

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.