Add Franchise and Newsletter management features
- Implemented FranchiseController with CRUD operations and data handling. - Created NewsletterController for managing newsletter subscriptions. - Added routes for Franchise and Newsletter resources in web.php. - Developed views for Franchise and Newsletter management including index, create, edit, and datatable actions. - Introduced form handling and validation for Franchise and Newsletter submissions. - Created database migrations for franchises and newsletters tables. - Updated sidebar configuration to include Franchise and Newsletter sections. - Enhanced client-side forms with AJAX submission for Franchise and Newsletter.
This commit is contained in:
@@ -101,19 +101,20 @@
|
||||
|
||||
<div class="franchise-form bg-white">
|
||||
|
||||
<form action="">
|
||||
<form action="{{ route('franchise.store') }}" method="post" id="franchise-form">
|
||||
@csrf
|
||||
<label class="text-16 pb-5" for="">Your Name <span
|
||||
class="text-brand">(Required)</span></label>
|
||||
<div class="flex gap-10 ">
|
||||
<div class="w-full">
|
||||
<label class="text-14 pb-5" for="">First</label>
|
||||
<input class="w-full mb-30 rounded-6 py-10 text-14 px-10" type="text" name=""
|
||||
id="">
|
||||
<input class="w-full mb-30 rounded-6 py-10 text-14 px-10" type="text"
|
||||
name="first_name" id="">
|
||||
</div>
|
||||
<div class="w-full">
|
||||
<label class="text-14 pb-5" for="">Last</label>
|
||||
<input class="w-full mb-30 rounded-6 py-10 text-14 px-10" type="text" name=""
|
||||
id="">
|
||||
<input class="w-full mb-30 rounded-6 py-10 text-14 px-10" type="text"
|
||||
name="last_name" id="">
|
||||
</div>
|
||||
|
||||
|
||||
@@ -123,33 +124,33 @@
|
||||
|
||||
<label class="text-16 pb-5" for="">Your Email Address <span
|
||||
class="text-brand">(Required)</span></label>
|
||||
<input class="w-full mb-20 rounded-6 py-10 text-14 px-10" type="email" name=""
|
||||
<input class="w-full mb-20 rounded-6 py-10 text-14 px-10" type="email" name="email"
|
||||
id="">
|
||||
|
||||
|
||||
|
||||
<label class="text-16 pb-5" for="">Your Phone <span
|
||||
class="text-brand">(Required)</span></label>
|
||||
<input class="w-full mb-20 rounded-6 py-10 text-14 px-10" type="text" name=""
|
||||
<input class="w-full mb-20 rounded-6 py-10 text-14 px-10" type="text" name="phone"
|
||||
id="">
|
||||
|
||||
|
||||
<label class="text-16 pb-5" for="">Your Address <span
|
||||
class="text-brand">(Required)</span></label>
|
||||
|
||||
<input class="w-full mb-20 rounded-6 py-10 text-14 px-10" type="text" name=""
|
||||
<input class="w-full mb-20 rounded-6 py-10 text-14 px-10" type="text" name="address"
|
||||
id="">
|
||||
|
||||
<div class="flex gap-10 ">
|
||||
<div class="w-full">
|
||||
<label class="text-14 pb-5" for="">City</label>
|
||||
<input class="w-full mb-30 rounded-6 py-10 text-14 px-10" type="text"
|
||||
name="" id="">
|
||||
name="city" id="">
|
||||
</div>
|
||||
<div class="w-full">
|
||||
<label class="text-14 pb-5" for="">State/Region/Province</label>
|
||||
<input class="w-full mb-30 rounded-6 py-10 text-14 px-10" type="text"
|
||||
name="" id="">
|
||||
name="state" id="">
|
||||
</div>
|
||||
|
||||
|
||||
@@ -161,7 +162,7 @@
|
||||
<div class="sm:block flex gap-10 ">
|
||||
<div class="w-full">
|
||||
<label class="text-14 pb-5" for="">Level to Invest</label>
|
||||
<select class="w-full py-5" name="" id="">
|
||||
<select class="w-full py-5" name="invest_level" id="">
|
||||
<option value="">Less than $20,000</option>
|
||||
<option value="">Less than $30,000</option>
|
||||
<option value="">Less than $40,000</option>
|
||||
@@ -169,9 +170,9 @@
|
||||
</select>
|
||||
|
||||
<!-- <select name="" id="franchise-invest">
|
||||
<option value="" selected hidden> Less than $10,000</option>
|
||||
<option value=""></option>
|
||||
</select> -->
|
||||
<option value="" selected hidden> Less than $10,000</option>
|
||||
<option value=""></option>
|
||||
</select> -->
|
||||
|
||||
|
||||
</div>
|
||||
@@ -179,7 +180,7 @@
|
||||
<label class="text-14 pb-5" for="">Do you currently own a business?
|
||||
(Yes/No)</label>
|
||||
<input class="w-full mb-30 rounded-6 py-10 text-14 px-10" type="text"
|
||||
name="" id="">
|
||||
name="own_business" id="">
|
||||
</div>
|
||||
|
||||
|
||||
@@ -192,26 +193,26 @@
|
||||
business</label>
|
||||
|
||||
|
||||
<textarea class="w-full mb-20 rounded-6 py-10 text-14 px-10" name="" id=""></textarea>
|
||||
<textarea class="w-full mb-20 rounded-6 py-10 text-14 px-10" name="yes_own_des" id=""></textarea>
|
||||
|
||||
|
||||
<div class="sm:block flex gap-10 ">
|
||||
<div class="w-full">
|
||||
<label class="text-14 pb-5" for="">Preferred Franchise Location</label>
|
||||
<input class="w-full mb-30 rounded-6 py-10 text-14 px-10" type="text"
|
||||
name="" id="">
|
||||
name="franchise_location" id="">
|
||||
</div>
|
||||
<div class="w-full">
|
||||
<label class="text-14 pb-5" for="">Timeframe to Start</label>
|
||||
<select class="w-full py-5" name="" id="">
|
||||
<select class="w-full py-5" name="start_time_frame" id="">
|
||||
<option value="">within 1 year</option>
|
||||
<option value="">After 1 year</option>
|
||||
|
||||
</select>
|
||||
<!-- <select name="" id="franchise-timeframe">
|
||||
<option value="" selected hidden> within 6 months</option>
|
||||
<option value=""></option>
|
||||
</select> -->
|
||||
<option value="" selected hidden> within 6 months</option>
|
||||
<option value=""></option>
|
||||
</select> -->
|
||||
</div>
|
||||
|
||||
|
||||
@@ -221,17 +222,18 @@
|
||||
</div>
|
||||
<div class="sm:w-full w-50percent">
|
||||
<label class="text-14 pb-5" for="">Do u already have an office setup ?</label>
|
||||
<input class="w-full mb-30 rounded-6 py-10 text-14 px-10" type="text" name=""
|
||||
id="">
|
||||
<input class="w-full mb-30 rounded-6 py-10 text-14 px-10" type="text"
|
||||
name="office_setup" id="">
|
||||
</div>
|
||||
|
||||
<label class="text-14 pb-5" for=""> Please add your bussiness portfolio website ,and
|
||||
let us know
|
||||
if you have any questions?</label>
|
||||
<textarea class="w-full mb-20 rounded-6 py-10 text-14 px-10" name="" id=""></textarea>
|
||||
<textarea class="w-full mb-20 rounded-6 py-10 text-14 px-10" name="website" id=""></textarea>
|
||||
|
||||
|
||||
<button class="button-hover px-20 py-10 bg-sec text-white text-16 border-0">Send
|
||||
<button type="submit" id="franchise-submit"
|
||||
class="button-hover px-20 py-10 bg-sec text-white text-16 border-0 franchise-submit">Send
|
||||
Message</button>
|
||||
</form>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user