Add methods to various page controllers for handling index, store, and show actions
This commit is contained in:
@@ -2,7 +2,23 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Models\Career;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
class CareersPageController extends Controller
|
class CareersPageController extends Controller
|
||||||
{
|
{
|
||||||
//
|
public function index()
|
||||||
|
{
|
||||||
|
return view('web.pages.careers.index');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function store(Request $request)
|
||||||
|
{
|
||||||
|
dd($request->all());
|
||||||
|
}
|
||||||
|
|
||||||
|
public function show(Career $career)
|
||||||
|
{
|
||||||
|
return view('web.pages.careers.show', compact('career'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,17 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
class ContactPageController extends Controller
|
class ContactPageController extends Controller
|
||||||
{
|
{
|
||||||
//
|
public function index()
|
||||||
|
{
|
||||||
|
return view('web.pages.contact.index');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function store(Request $request)
|
||||||
|
{
|
||||||
|
dd($request->all());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,23 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use App\Models\Internship;
|
||||||
|
|
||||||
class InternshipsPageController extends Controller
|
class InternshipsPageController extends Controller
|
||||||
{
|
{
|
||||||
//
|
public function index()
|
||||||
|
{
|
||||||
|
return view('web.pages.internships.index');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function store(Request $request)
|
||||||
|
{
|
||||||
|
dd($request->all());
|
||||||
|
}
|
||||||
|
|
||||||
|
public function show(Internship $internship)
|
||||||
|
{
|
||||||
|
return view('web.pages.internships.show', compact('internship'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,13 @@ namespace App\Http\Controllers;
|
|||||||
|
|
||||||
class LegalPageController extends Controller
|
class LegalPageController extends Controller
|
||||||
{
|
{
|
||||||
//
|
public function terms()
|
||||||
|
{
|
||||||
|
return view('web.pages.legal.terms');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function privacy()
|
||||||
|
{
|
||||||
|
return view('web.pages.legal.privacy');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,17 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Models\News;
|
||||||
|
|
||||||
class NewsPageController extends Controller
|
class NewsPageController extends Controller
|
||||||
{
|
{
|
||||||
//
|
public function index()
|
||||||
|
{
|
||||||
|
return view('web.pages.news.index');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function show(News $news)
|
||||||
|
{
|
||||||
|
return view('web.pages.news.show', compact('news'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,17 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Models\Solution;
|
||||||
|
|
||||||
class OurSolutionPageController extends Controller
|
class OurSolutionPageController extends Controller
|
||||||
{
|
{
|
||||||
//
|
public function index()
|
||||||
|
{
|
||||||
|
return view('web.pages.our-solutions.index');
|
||||||
|
}
|
||||||
|
public function show(Solution $solution)
|
||||||
|
|
||||||
|
{
|
||||||
|
return view('web.pages.our-solutions.show', compact('solution'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,17 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Models\Story;
|
||||||
|
|
||||||
class StoryPageController extends Controller
|
class StoryPageController extends Controller
|
||||||
{
|
{
|
||||||
//
|
public function index()
|
||||||
|
{
|
||||||
|
return view('web.pages.stories.index');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function show(Story $story)
|
||||||
|
{
|
||||||
|
return view('web.pages.stories.show', compact('story'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
15
app/Models/Career.php
Normal file
15
app/Models/Career.php
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Career extends Model
|
||||||
|
{
|
||||||
|
protected $fillable = [
|
||||||
|
'title',
|
||||||
|
'description',
|
||||||
|
'location',
|
||||||
|
'salary',
|
||||||
|
];
|
||||||
|
}
|
||||||
10
app/Models/Internship.php
Normal file
10
app/Models/Internship.php
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Internship extends Model
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
18
app/Models/News.php
Normal file
18
app/Models/News.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class News extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
|
||||||
|
protected $fillable = [
|
||||||
|
'title',
|
||||||
|
'slug',
|
||||||
|
'content',
|
||||||
|
'published_at',
|
||||||
|
];
|
||||||
|
}
|
||||||
17
app/Models/Solution.php
Normal file
17
app/Models/Solution.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Solution extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
|
||||||
|
protected $fillable = [
|
||||||
|
'title',
|
||||||
|
'description',
|
||||||
|
'slug',
|
||||||
|
];
|
||||||
|
}
|
||||||
18
app/Models/Story.php
Normal file
18
app/Models/Story.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Story extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
|
||||||
|
protected $fillable = [
|
||||||
|
'title',
|
||||||
|
'slug',
|
||||||
|
'content',
|
||||||
|
'published_at',
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
namespace App\Providers;
|
namespace App\Providers;
|
||||||
|
|
||||||
use App\Filament\CMS\Home\HomeSettings;
|
|
||||||
use App\Models\Brand;
|
use App\Models\Brand;
|
||||||
use App\Settings\SiteSettings;
|
use App\Settings\SiteSettings;
|
||||||
use App\Settings\SiteSocialSettings;
|
use App\Settings\SiteSocialSettings;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use App\Settings\HomeSettings;
|
||||||
use Illuminate\Support\Facades\View as ViewFacade;
|
use Illuminate\Support\Facades\View as ViewFacade;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
use Illuminate\View\View;
|
use Illuminate\View\View;
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('solutions', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('solutions');
|
||||||
|
}
|
||||||
|
};
|
||||||
27
database/migrations/2025_07_28_121928_create_news_table.php
Normal file
27
database/migrations/2025_07_28_121928_create_news_table.php
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('news', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('news');
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('stories', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('stories');
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('careers', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->string('title');
|
||||||
|
$table->text('description');
|
||||||
|
$table->string('location');
|
||||||
|
$table->string('salary')->nullable();
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('careers');
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('internships', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('internships');
|
||||||
|
}
|
||||||
|
};
|
||||||
0
resources/views/web/pages/careers/index.blade.php
Normal file
0
resources/views/web/pages/careers/index.blade.php
Normal file
0
resources/views/web/pages/careers/show.blade.php
Normal file
0
resources/views/web/pages/careers/show.blade.php
Normal file
114
resources/views/web/pages/contact/index.blade.php
Normal file
114
resources/views/web/pages/contact/index.blade.php
Normal file
@@ -0,0 +1,114 @@
|
|||||||
|
@extends('web.layouts.app')
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<!-- Breadcrumb Area Start -->
|
||||||
|
<div class="breadcrumb__area" style="background-image: url('assets/img/page/breadcrumb.jpg');">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xl-12">
|
||||||
|
<div class="breadcrumb__area-content">
|
||||||
|
<h2>Contact Us</h2>
|
||||||
|
<ul>
|
||||||
|
<li><a href="index.html">Home</a><i class="fa-regular fa-angle-right"></i></li>
|
||||||
|
<li>Contact Us</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Breadcrumb Area End -->
|
||||||
|
<!-- Contact Area Start -->
|
||||||
|
<div class="contact__area section-padding">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-5 lg-mb-25">
|
||||||
|
<div class="contact__area-left mr-40 xl-mr-0">
|
||||||
|
<div class="title">
|
||||||
|
<span class="subtitle wow fadeInLeft" data-wow-delay=".4s">Contact Us</span>
|
||||||
|
<h2 class="title_split_anim mb-25">Get In Touch</h2>
|
||||||
|
<p class="wow fadeInUp" data-wow-delay=".4s">We’re here to assist you! Please reach out with any questions, feedback, or project inquiries.</p>
|
||||||
|
</div>
|
||||||
|
<div class="contact__area-left-contact wow fadeInUp" data-wow-delay=".7s">
|
||||||
|
<div class="contact__area-left-contact-item">
|
||||||
|
<div class="contact__area-left-contact-item-icon">
|
||||||
|
<i class="flaticon-phone"></i>
|
||||||
|
</div>
|
||||||
|
<div class="contact__area-left-contact-item-content">
|
||||||
|
<span>Phone:</span>
|
||||||
|
<h6><a href="tel:+123 (256) 568 58">+123 (256) 568 58</a></h6>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="contact__area-left-contact-item">
|
||||||
|
<div class="contact__area-left-contact-item-icon">
|
||||||
|
<i class="flaticon-email-3"></i>
|
||||||
|
</div>
|
||||||
|
<div class="contact__area-left-contact-item-content">
|
||||||
|
<span>Email Address:</span>
|
||||||
|
<h6><a href="mailto:needhelp@gmail.com">needhelp@gmail.com</a></h6>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="contact__area-left-contact-item">
|
||||||
|
<div class="contact__area-left-contact-item-icon">
|
||||||
|
<i class="flaticon-location-1"></i>
|
||||||
|
</div>
|
||||||
|
<div class="contact__area-left-contact-item-content">
|
||||||
|
<span>Location:</span>
|
||||||
|
<h6><a href="https://google.com/maps" target="_blank">2464 Royal Ln. Mesa, New Jersey 45463</a></h6>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-7 wow fadeInRight" data-wow-delay=".4s">
|
||||||
|
<div class="contact__area-form">
|
||||||
|
<h4>Send Message</h4>
|
||||||
|
<form action="#">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6 mb-25">
|
||||||
|
<div class="contact__form-area-item">
|
||||||
|
<input type="text" name="name" placeholder="Full Name" required="required">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6 md-mb-25">
|
||||||
|
<div class="contact__form-area-item">
|
||||||
|
<input type="email" name="email" placeholder="Email Address" required="required">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-12 mb-25">
|
||||||
|
<div class="contact__form-area-item">
|
||||||
|
<input type="text" name="subject" placeholder="Subject">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-12 mb-25">
|
||||||
|
<div class="contact__form-area-item">
|
||||||
|
<textarea name="message" placeholder="Message"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="contact__form-area-item">
|
||||||
|
<button class="build_button" type="submit">Submit Message <i class="flaticon-right-up"></i></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Contact Area End -->
|
||||||
|
<!-- Map Area Start -->
|
||||||
|
<div class="map section-padding pt-0">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xl-12 wow fadeInUp" data-wow-delay=".4s">
|
||||||
|
<div class="map-area">
|
||||||
|
<iframe loading="lazy" src="https://maps.google.com/maps?q=London%20Eye%2C%20London%2C%20United%20Kingdom&t=m&z=10&output=embed&iwloc=near" title="London Eye, London, United Kingdom" aria-label="London Eye, London, United Kingdom"></iframe>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Map Area End -->
|
||||||
|
@stop
|
||||||
0
resources/views/web/pages/legal/privacy.blade.php
Normal file
0
resources/views/web/pages/legal/privacy.blade.php
Normal file
0
resources/views/web/pages/legal/terms.blade.php
Normal file
0
resources/views/web/pages/legal/terms.blade.php
Normal file
1
resources/views/web/pages/news/index.blade.php
Normal file
1
resources/views/web/pages/news/index.blade.php
Normal file
@@ -0,0 +1 @@
|
|||||||
|
w
|
||||||
0
resources/views/web/pages/news/show.blade.php
Normal file
0
resources/views/web/pages/news/show.blade.php
Normal file
0
resources/views/web/pages/stories/index.blade.php
Normal file
0
resources/views/web/pages/stories/index.blade.php
Normal file
0
resources/views/web/pages/stories/show.blade.php
Normal file
0
resources/views/web/pages/stories/show.blade.php
Normal file
Reference in New Issue
Block a user