Airport Guide Documentation

RenatlcarController extends BaseController
in package

Rental Car Controller

This controller manages comprehensive rental car operations including rental car CRUD, DataTables integration, advanced filtering, and rental car details viewing. It provides functionality for managing rental car services with airport integration, company information tracking, contact details, and admin activity logging.

Table of Contents

Methods

__construct()  : void
Create a new RenatlcarController instance.
create()  : View
Show the form for creating a new rental car.
destroy()  : RedirectResponse
Remove the specified rental car from storage.
edit()  : View
Show the form for editing the specified rental car.
index()  : View|JsonResponse
Display a listing of rental cars with DataTables integration and advanced filtering.
show()  : void
Display detailed information for a specific rental car.
store()  : RedirectResponse
Store a newly created rental car in storage.
update()  : RedirectResponse
Update the specified rental car in storage.

Methods

__construct()

Create a new RenatlcarController instance.

public __construct() : void

Checks if user is logged in and has proper permissions for rental car management. Redirects to appropriate page if permissions are not met.

create()

Show the form for creating a new rental car.

public create(Request $request) : View

Displays the rental car creation form with initialized form fields and related data. Loads airport information and states for form population. Provides interface for adding new rental car services with comprehensive information management.

Parameters
$request : Request
Return values
View

destroy()

Remove the specified rental car from storage.

public destroy(int $id) : RedirectResponse

Deletes the rental car record and provides appropriate feedback message. Handles rental car deletion with proper error handling and admin activity logging.

Parameters
$id : int

Rental car ID

Return values
RedirectResponse

edit()

Show the form for editing the specified rental car.

public edit(int $id, Request $request) : View

Validates user permissions and rental car ID before displaying the edit form. Includes security checks with MD5 hash validation for rental car access. Loads existing rental car data and related information for editing.

Parameters
$id : int

Rental car ID

$request : Request
Return values
View

index()

Display a listing of rental cars with DataTables integration and advanced filtering.

public index(Request $request) : View|JsonResponse

Provides a paginated list of rental cars with comprehensive search capabilities. Supports filtering by company name, address, city, state, phone, airport code, and data source. Includes DataTables integration with custom column formatting and action buttons for rental car details.

Parameters
$request : Request
Return values
View|JsonResponse

show()

Display detailed information for a specific rental car.

public show(int $id, Request $request) : void

Generates HTML table with comprehensive rental car details including airport information, company details, contact information, and operational hours. Returns formatted HTML for modal display with all rental car information.

Parameters
$id : int

Rental car ID

$request : Request

store()

Store a newly created rental car in storage.

public store(Request $request) : RedirectResponse

Validates rental car data and creates a new rental car record with airport integration. Handles airport code parsing, company information, contact details, and admin activity logging. Provides appropriate feedback message after successful creation.

Parameters
$request : Request
Return values
RedirectResponse

update()

Update the specified rental car in storage.

public update(Request $request, int $id) : RedirectResponse

Validates rental car data and updates the rental car record with airport integration. Handles airport code parsing, company information, contact details, and admin activity logging. Provides appropriate feedback message after successful update.

Parameters
$request : Request
$id : int

Rental car ID

Return values
RedirectResponse

        
On this page

Search results