Skip to content

i4edubd/isp

Repository files navigation

Metronic Tailwind HTML Laravel Integration

This project integrates Metronic Tailwind HTML themes into a Laravel application, providing 10 complete demo layouts showcasing different UI patterns and design approaches.

Project Overview

Goal: Convert Metronic Tailwind HTML demo layouts (Demo1 through Demo10) into standard Laravel Blade views, providing a comprehensive showcase of Metronic's design system within Laravel's MVC architecture.

Tech Stack

  • Laravel: 12.x (Latest)
  • PHP: 8.2+
  • Tailwind CSS: 3.x
  • Vite: 5.x for asset building
  • Node.js: Latest LTS version

Project Structure

app/Http/Controllers/
├── Demo1Controller.php
├── Demo2Controller.php
├── ...
└── Demo10Controller.php

resources/views/
├── layouts/
│   ├── partials/
│   │   ├── head.blade.php
│   │   └── scripts.blade.php
│   ├── demo1/
│   │   ├── base.blade.php
│   │   └── partials/
│   ├── demo2/
│   │   ├── base.blade.php
│   │   └── partials/
│   └── ... (demo3-demo10)
├── pages/
│   ├── demo1/
│   │   └── index.blade.php
│   ├── demo2/
│   │   └── index.blade.php
│   └── ... (demo3-demo10)
└── components/
    ├── demo1/
    ├── demo2/
    ├── ... (demo3-demo10)
    └── shared/

public/assets/
├── css/
│   └── styles.css
├── js/
│   ├── core.bundle.js
│   └── layouts/
│       ├── demo1.js
│       ├── demo2.js
│       └── ... (demo3-demo10.js)
├── media/
└── vendors/

Demo Layouts

This integration includes 10 complete demo layouts, each showcasing different UI patterns:

  • Demo 1: Sidebar Layout - Traditional admin dashboard with sidebar navigation
  • Demo 2: Header Layout - Modern dashboard with top navigation
  • Demo 3: Minimal Layout - Clean, minimalist design approach
  • Demo 4: Creative Layout - Creative and artistic dashboard design
  • Demo 5: Modern Layout - Contemporary UI with modern elements
  • Demo 6: Professional Layout - Business-focused professional design
  • Demo 7: Corporate Layout - Enterprise-grade corporate dashboard
  • Demo 8: Executive Layout - Executive-level dashboard interface
  • Demo 9: Premium Layout - Premium design with advanced components
  • Demo 10: Ultimate Layout - Most comprehensive layout with all features

Features

✅ Core Implementation

  1. Laravel MVC Architecture

    • Dedicated controllers for each demo (Demo1Controller - Demo10Controller)
    • Clean routing structure with named routes
    • Blade template inheritance and components
  2. Asset Management

    • Metronic CSS and JavaScript assets properly integrated
    • Laravel asset helpers for proper path resolution
    • Vite integration for development workflow
  3. Template System

    • Blade layouts for each demo with proper inheritance
    • Reusable partials for headers, sidebars, and footers
    • Component-based architecture for UI elements
  4. Responsive Design

    • Mobile-first responsive layouts
    • Touch-friendly navigation
    • Adaptive components across all screen sizes

🎨 Design System

  • Metronic Tailwind CSS - Complete design system integration
  • Theme Support - Light and dark mode switching
  • Custom Components - Metronic-specific UI components
  • Icon System - Comprehensive icon library integration

Getting Started

Prerequisites

  • PHP 8.2 or higher
  • Composer
  • Node.js (LTS version)
  • A web server (Apache/Nginx) or use Laravel's built-in server

Installation

  1. Clone the repository
git clone https://github.com/keenthemes/metronic-tailwind-html-integration.git
cd metronic-tailwind-html-integration/metronic-tailwind-laravel
  1. Install PHP dependencies
composer install
  1. Install Node.js dependencies
npm install
  1. Copy Metronic assets
# Copy assets from metronic-tailwind-html/dist/assets to public/assets/
cp -r ../metronic-tailwind-html/dist/assets public/
  1. Environment setup
cp .env.example .env
php artisan key:generate
  1. Start development servers
# Terminal 1: Laravel server
php artisan serve

# Terminal 2: Vite dev server
npm run dev

Available Routes

  • Demo 1: /demo1 - Sidebar Layout
  • Demo 2: /demo2 - Header Layout
  • Demo 3: /demo3 - Minimal Layout
  • Demo 4: /demo4 - Creative Layout
  • Demo 5: /demo5 - Modern Layout
  • Demo 6: /demo6 - Professional Layout
  • Demo 7: /demo7 - Corporate Layout
  • Demo 8: /demo8 - Executive Layout
  • Demo 9: /demo9 - Premium Layout
  • Demo 10: /demo10 - Ultimate Layout

Production Deployment

Build for Production

# Build optimized assets
npm run build

# Optimize Laravel
php artisan config:cache
php artisan route:cache
php artisan view:cache

# Optimize Composer autoloader
composer install --optimize-autoloader --no-dev

Customization

Adding Your Own Content

  1. Controllers: Modify demo controllers to return your actual data
  2. Views: Customize Blade templates with your content
  3. Components: Create new Blade components for your specific needs
  4. Styling: Add custom CSS in resources/css/app.css

Extending Layouts

  • Each demo layout is independent and can be customized separately
  • Shared partials allow for consistent elements across demos
  • Component system enables reusable UI elements

Architecture

Design Principles

  • MVC Pattern: Clean separation using Laravel's MVC architecture
  • Component-Based: Reusable Blade components for UI elements
  • Asset Integration: Proper integration of Metronic assets with Laravel
  • Responsive Design: Mobile-first approach across all layouts

File Organization

  • Controllers: One controller per demo layout
  • Views: Organized by demo with shared layouts and partials
  • Assets: Metronic assets properly integrated in public/assets/
  • Components: Reusable UI components for consistent functionality

Documentation

For detailed integration steps and customization guides, refer to the complete documentation in the main repository.

Support

For questions and support:

  • Review the integration documentation
  • Check the demo implementations for examples
  • Refer to Laravel documentation for framework-specific questions

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published