<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    require_once __DIR__ . ('/../settings.php');

    return view('index', $settings);
});

 

<!--resoureces/views/partials/head.blade.php-->

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Laravel</title>
        <link href="{{ asset('styles/global.css') }}" rel='stylesheet' />
        <link href="{{ asset('images/site_logo.png') }}" rel='icon' />
        <link href="{{ asset('fonts/setup.css') }}" rel='stylesheet' />
        <script src="{{ asset('scripts/jQuery.js') }}"></script>
        <link href="{{ asset('styles/partials/header.css') }}" rel='stylesheet' />
    </head>
    <body>
    <div class='Site region'>

    <div class='Title'>
        <div class='wrapper'>
            <a href='<?php echo url("/") ?>'>{{ $siteTitle }}</a>
            <div class='description'>ព័ត៌មាន​ពិត​ឥត​លំំអៀង</div>
        </div>
    </div>

    @include('partials.menu')
    

 

<!--resources/views/partials/menu.blade.php-->
<link href="{{ asset('styles/partials/menu.css') }}" rel='stylesheet' />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

<div class="topnav" id="myTopnav">
  <a href="<?php echo url("/") ?>" class="active">ទំព័រ​ដើម</a>
  <a href="#news">ព័ត៌មាន</a>
  <a href="#contact">ទំនាក់ទំនង</a>
  <div class="dropdown">
    <button class="dropbtn">ជំពូក
      <i class="fa fa-caret-down"></i>
    </button>
    <div class="dropdown-content">
      <a href="#">តំណរភ្ជាប់ ១</a>
      <a href="#">តំណរភ្ជាប់ ២</a>
      <a href="#">តំណរភ្ជាប់ ៣</a>
    </div>
  </div>
  <a href="#about">អំពី​យើង​ខ្ញុំ</a>
  <a href="javascript:void(0);" class="icon" onclick="myFunction()">&#9776;</a>
</div>

<script>
function myFunction() {
  var x = document.getElementById("myTopnav");
  if (x.className === "topnav") {
    x.className += " responsive";
  } else {
    x.className = "topnav";
  }
}
</script>

 

GitHub: https://github.com/Sokhavuth/laravel

Heroku: http://khmerweb-laravel.herokuapp.com/