Basic resources
This commit is contained in:
16
resources/routes/web.php
Normal file
16
resources/routes/web.php
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
use ProVM\Common\Helper\Merger;
|
||||||
|
use Incoviba\Control\Common\Controller\Home;
|
||||||
|
|
||||||
|
$folder = (new Merger(DIRECTORY_SEPARATOR))->add(__DIR__)->add($__environment)->merge();
|
||||||
|
if (file_exists($folder)) {
|
||||||
|
$files = new DirectoryIterator($folder);
|
||||||
|
foreach ($files as $file) {
|
||||||
|
if ($file->isDir() or $file->getExtension() != 'php') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
include_once $file->getRealPath();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$app->get('/', Home::class);
|
7
resources/views/home.blade.php
Normal file
7
resources/views/home.blade.php
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
@extends('layout.base')
|
||||||
|
|
||||||
|
@section('page_content')
|
||||||
|
<div class="ui container">
|
||||||
|
Home
|
||||||
|
</div>
|
||||||
|
@endsection
|
5
resources/views/layout/base.blade.php
Normal file
5
resources/views/layout/base.blade.php
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="es">
|
||||||
|
@include('layout.head')
|
||||||
|
@include('layout.body')
|
||||||
|
</html>
|
5
resources/views/layout/body.blade.php
Normal file
5
resources/views/layout/body.blade.php
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<body>
|
||||||
|
@include('layout.header')
|
||||||
|
@yield('page_content')
|
||||||
|
@include('layout.footer')
|
||||||
|
</body>
|
3
resources/views/layout/footer.blade.php
Normal file
3
resources/views/layout/footer.blade.php
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<footer>
|
||||||
|
</footer>
|
||||||
|
@include('layout.scripts')
|
5
resources/views/layout/head.blade.php
Normal file
5
resources/views/layout/head.blade.php
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title>Control de Gestión</title>
|
||||||
|
@include('layout.styles')
|
||||||
|
</head>
|
2
resources/views/layout/header.blade.php
Normal file
2
resources/views/layout/header.blade.php
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<header>
|
||||||
|
</header>
|
7
resources/views/layout/scripts.blade.php
Normal file
7
resources/views/layout/scripts.blade.php
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
@if (isset($assets) and isset($assets['scripts']))
|
||||||
|
@foreach ($assets['scripts'] as $script)
|
||||||
|
{!!$script!!}
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@stack('scripts')
|
15
resources/views/layout/styles.blade.php
Normal file
15
resources/views/layout/styles.blade.php
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
@if (isset($assets))
|
||||||
|
@foreach ($assets as $type => $list)
|
||||||
|
@foreach ($list as $style)
|
||||||
|
@if ($type == 'styles')
|
||||||
|
<link rel="stylesheet" href="{{$style}}" />
|
||||||
|
@elseif ($type == 'fonts')
|
||||||
|
<link href={{$style}} />
|
||||||
|
@elseif ($type == 'links')
|
||||||
|
{!!$style!!}
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@stack('styles')
|
Reference in New Issue
Block a user