service.php
The service.php file in the linuxfront-v2-logistics directory renders the “Our Services Include” page, showcasing Tech Logistics’ core offerings in a responsive Bootstrap layout. It stitches together global configuration, meta information, header/footer panels, and a list of service sections with icons and descriptions.
Key Responsibilities
- Load global constants and paths via inc/config.php.
- Inject common
<meta>tags from both template and panel sources. - Render the site header and footer for unauthenticated (home) view.
- Display a grid of service offerings, each with an ID anchor for deep linking.
File Structure
<? include_once("inc/config.php"); ?> // Global settings
<!DOCTYPE html>
<html lang="en">
<head>
<? include_once(TEMPLATE_DIR . "inc/template_meta.php"); ?> // Template meta tags
<? include_once("inc/panels/meta.php"); ?> // Additional meta
</head>
<body id="top">
<!-- Header Start -->
<? include_once("inc/panels/header-home.php"); ?> // Home header
<!-- Header Closed -->
<div class="container mb-5">
<div class="row">
<div class="col-12"><h2 class="mt-0">Our Services Include</h2></div>
<!-- Service Sections… -->
</div>
</div>
<? include_once("inc/panels/footer-home.php"); ?> // Home footer
</body>
</html>
Dependencies & Includes
- inc/config.php – Defines
TEMPLATE_DIR,SITE_DIR, email constants, session start, etc. - TEMPLATE_DIR/inc/template_meta.php – Template-level
<meta>and CSS/JS includes. - inc/panels/meta.php – Page-specific
<meta>tags (SEO titles, descriptions). - inc/panels/header-home.php – Navbar and branding for public pages.
- inc/panels/footer-home.php – Site footer with links and copyright.
Services Overview 🚚💼📦
Each service is wrapped in a div.Timeshare-Anymore block, using Bootstrap’s grid classes. Icons are loaded from images/*.webp, and each section has a unique ID for anchor links.
| Section ID | Title | Description |
|---|---|---|
| transport | Transportation Management | Focuses on optimizing logistics processes, ensuring the efficient movement of goods from origin to destination. It includes route planning, carrier selection, tracking, and timely delivery to minimize costs and maximize performance. |
| carrier | Carrier Contract Negotiations | Involve discussions between shippers and carriers to establish favorable terms for freight services. This process ensures competitive rates, service-level agreements, and flexibility, benefiting both parties in terms of costs and reliability. |
| ltl | Uniform LTL Base Rates | Are standardized pricing structures for Less-Than-Truckload shipments. They allow for easier rate comparisons across carriers, ensuring consistency in shipping costs regardless of which carrier is chosen. |
| erp | Custom ERP Integration | Connects a company’s internal systems with external logistics platforms, enabling real-time data exchange and improved process automation. This integration streamlines operations by enhancing visibility and coordination across departments. |
| prepay | Automatic Pre-Pay & Add Calculator | Automates the process of calculating extra charges added to the base shipping cost. This tool simplifies billing for freight shipments, ensuring accurate pricing without manual input. |
| freight | Freight Bill Auditing including parcel | Ensures that freight bills are accurate by identifying discrepancies or overcharges. Auditing also improves accountability and helps reduce shipping costs through continuous monitoring. |
| bill | Bill of Lading Matching | Verifies shipment documentation to ensure that goods listed on the Bill of Lading match what was shipped. This process helps prevent errors in the supply chain and improves accountability. |
| loss | Loss & Damage Claims | Filed when shipments are lost or damaged in transit. The claims process ensures recovery for shippers, holding carriers accountable and ensuring fair compensation for any loss or damage incurred. |
Code Snippet: Single Service Block
<div class="col-12" id="transport">
<div class="Timeshare-Anymore">
<h3>Transportation Management</h3>
<div class="d-flex">
<div class="me-4">
<img src="images/transportation-management-icon.webp" class="mt-2" alt="Transportation Management" />
</div>
<div>
<p>Focuses on optimizing logistics processes, ensuring the efficient movement of goods from origin to destination. It includes route planning, carrier selection, tracking, and timely delivery to minimize costs and maximize performance.</p>
</div>
</div>
</div>
</div>
Styling & Responsiveness
- Utilizes Bootstrap grid (
.row,.col-lg-12,.col-md-12, etc.) for full-width sections. - Flex utilities (
.d-flex,.me-4) align icons and text. - Margin classes (
.mt-0,.mb-5) maintain spacing.
This documentation covers service.php functionality and its integration within the front-end template system of the Tech Logistics application.