Enhance careers management features: update CareersPageController to fetch and display career listings with additional fields, modify Career model to include relationships and new attributes, and create a new view for the careers index with an application modal. Update database migration to reflect changes in the careers table structure and adjust routes for application submissions.

This commit is contained in:
2025-07-29 00:23:08 +05:00
parent 9b3ca3ff66
commit a89e2a71d8
15 changed files with 535 additions and 11 deletions

View File

@@ -10,6 +10,7 @@ use App\Http\Controllers\NewsPageController;
use App\Http\Controllers\OurSolutionPageController;
use App\Http\Controllers\StoryPageController;
use App\Http\Controllers\Web\SuccessPageController;
use App\Http\Controllers\ApplicationController;
use Illuminate\Support\Facades\Route;
// Homepage...
@@ -33,8 +34,8 @@ Route::get('success-stories/{success:slug}', [SuccessPageController::class, 'sho
// Careers...
Route::get('careers', [CareersPageController::class, 'index'])->name('career.index');
Route::get('careers/{career:slug}', [CareersPageController::class, 'show'])->name('career.show');
Route::post('careers', [CareersPageController::class, 'store'])->name('career.store');
Route::post('applications', [ApplicationController::class, 'store'])->name('applications.store');
// Internships...
Route::get('internships', [InternshipsPageController::class, 'index'])->name('internship.index');