Basic resources

This commit is contained in:
2020-12-15 17:45:45 -03:00
parent 6c945e915f
commit acde7a5023
9 changed files with 65 additions and 0 deletions

16
resources/routes/web.php Normal file
View 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);

View File

@ -0,0 +1,7 @@
@extends('layout.base')
@section('page_content')
<div class="ui container">
Home
</div>
@endsection

View File

@ -0,0 +1,5 @@
<!DOCTYPE html>
<html lang="es">
@include('layout.head')
@include('layout.body')
</html>

View File

@ -0,0 +1,5 @@
<body>
@include('layout.header')
@yield('page_content')
@include('layout.footer')
</body>

View File

@ -0,0 +1,3 @@
<footer>
</footer>
@include('layout.scripts')

View File

@ -0,0 +1,5 @@
<head>
<meta charset="utf-8" />
<title>Control de Gestión</title>
@include('layout.styles')
</head>

View File

@ -0,0 +1,2 @@
<header>
</header>

View File

@ -0,0 +1,7 @@
@if (isset($assets) and isset($assets['scripts']))
@foreach ($assets['scripts'] as $script)
{!!$script!!}
@endforeach
@endif
@stack('scripts')

View 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')