LimoDetailsController
extends BaseController
in package
Limo Details Controller
This controller manages comprehensive limo service operations including limo CRUD, DataTables integration, advanced filtering, and limo information management. It provides functionality for managing limo services with search capabilities, pagination, and detailed limo information display for airport transportation services.
Table of Contents
Methods
- __construct() : void
- Create a new LimoDetailsController instance.
- create() : View
- Show the form for creating a new limo service.
- destroy() : RedirectResponse
- Remove the specified limo service from storage.
- edit() : View
- Show the form for editing the specified limo service.
- index() : View|JsonResponse
- Display a listing of limo services with DataTables integration and advanced filtering.
- show() : void
- Display detailed information about a specific limo service.
- store() : RedirectResponse
- Store a newly created limo service in storage.
- update() : RedirectResponse
- Update the specified limo service in storage.
Methods
__construct()
Create a new LimoDetailsController instance.
public
__construct() : void
Checks if user is logged in and has proper permissions for limo management. Redirects to appropriate page if permissions are not met.
create()
Show the form for creating a new limo service.
public
create(Request $request) : View
Displays the limo service creation form with dropdown data for airports and states. Initializes form fields and loads reference data for limo service creation.
Parameters
- $request : Request
Return values
Viewdestroy()
Remove the specified limo service from storage.
public
destroy(int $id) : RedirectResponse
Deletes the limo service record and logs the activity for audit purposes. Provides appropriate feedback message after successful deletion.
Parameters
- $id : int
Return values
RedirectResponseedit()
Show the form for editing the specified limo service.
public
edit(int $id, Request $request) : View
Validates user permissions and limo service ID before displaying the edit form. Includes security checks with MD5 hash validation for limo service access.
Parameters
- $id : int
- $request : Request
Return values
Viewindex()
Display a listing of limo services with DataTables integration and advanced filtering.
public
index(Request $request) : View|JsonResponse
Provides a paginated list of limo services with comprehensive search capabilities. Supports filtering by company name, address, phone, airport name, and airport code. Includes DataTables functionality with custom columns and action buttons for CRUD operations.
Parameters
- $request : Request
Return values
View|JsonResponseshow()
Display detailed information about a specific limo service.
public
show(int $id, Request $request) : void
Shows comprehensive limo service information in a formatted HTML table. Displays limo details including airport name, company information, contact details, and service information for the specified limo service.
Parameters
- $id : int
- $request : Request
store()
Store a newly created limo service in storage.
public
store(Request $request) : RedirectResponse
Validates limo service data, processes airport information, and creates a new limo record. Handles airport code extraction and logs the activity for audit purposes.
Parameters
- $request : Request
Return values
RedirectResponseupdate()
Update the specified limo service in storage.
public
update(Request $request, int $id) : RedirectResponse
Validates limo service data, processes airport information, and updates the limo record. Handles airport code extraction and logs the activity for audit purposes. Maintains pagination and filter parameters for proper redirect.
Parameters
- $request : Request
- $id : int