Laravel Interview Task Details
Task Summary
Task Name: Hotel Rate System
Step 1: Hotel CRUD [ for admin ]
Step 2: Hotel Rates [ for admin ]
Step 3: Hotel Rates Search Part [ for user ]
Instructions
Task Summary
We are going to build a simple rate display system for hotel since we are going to work on a project which is based on travel domain.
You will make a simple admin interface to enter hotel details + rates
Simple search form for user to enter details to get rates.
Make a DB factory for 2-3 hotels data + rates
You can use bootstrap or tailwind for styling purpose.
Task Name: Hotel Rate System
Step 1: Hotel CRUD [ for admin ]
Create a simple form with fields
Hotel Name [type: text field ] [ required ]
Hotel Stars [type: dropdown, values 3,4,5,7 star ] [ required ]
Hotel Address [ textarea ] [ optional ]
Step 2: Hotel Rates [ for admin ]
Hotel can have multiple rates based on dates. For example
Date Range Rate for Adult per night [ USD ] Rate for child per night [ USD ]
1st april to 15th may 30 10
16th May to 31st October 35 15
1st November to 31st Dec 45 25
1st Jan to 31st March 20 5
We would like to do these operations as Admin
Save new rates [ date ranges should not overlap ]
Edit existing rates
Delete any date range rates
Step 3: Hotel Rates Search Part [ for user ]
Make a simple form where user enters
Check in date
Checkout date
No of adults
No of children
Submit button
All the fields are required.
Upon entering these fields, display hotel rates.
Created in 2021 by Anglara Digital Solutions.
Logic to apply here
We need to calculate rates for the dates entered by the user
We need to show rates in this manner
Per Adult Rate
Per Children Rate
Total
All right, thats it. Please follow these instructions so it makes it easier to check your submission.
This is a very important step, try to bring your A game. Please don’t take this lightly.
Wish you all the best and we hope you crack it and we see you in next round.
Instructions
Use any time tracker software or record your screen while coding. For example tools like these
https://chrome.google.com/webstore/detail/screen-recorder/hniebljpgcogalllopnjokppmgbhaden?hl=en
https://chrome.google.com/webstore/detail/screencastify-screen-vide/mmeijimgabbpbgpdklnllpncmdofkcpn?hl=en
Inform us how much time it took you to finish each step [ this is for our ref only ]
Ship entire code to github public repo.
If you dont have a github profile, sign up and ship there.
Demo data should be saved in DB when we run php artisan db:seed
The entire solution should be made using laravel version 7+
We expect you to finish this task honestly, because this code we will use for assessment and for tech interview as well, so its
IMP you code yourself and understand each line you wrote.
We expect you will follow best coding practise and present your best knowledge.
Date to Submit: Within 3-4 days from the day you receive this document.
If you have any query, don’t worry we are here to help. You can reach to [email protected]
Created in 2021 by Anglara Digital Solutions.