Seteo inicial
This commit is contained in:
2
resources/routes/router.php
Normal file
2
resources/routes/router.php
Normal file
@ -0,0 +1,2 @@
|
||||
<?php
|
||||
include_once . '.php';
|
14
resources/routes/web.php
Normal file
14
resources/routes/web.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
$folder = implode(DIRECTORY_SEPARATOR, [
|
||||
__DIR__,
|
||||
'web'
|
||||
]);
|
||||
if (file_exists($folder)) {
|
||||
$files = new DirectoryIterator($folder);
|
||||
foreach ($files as $file) {
|
||||
if ($file->isDir()) {
|
||||
continue;
|
||||
}
|
||||
include_once $file->getRealPath();
|
||||
}
|
||||
}
|
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>
|
9
resources/views/layout/body.blade.php
Normal file
9
resources/views/layout/body.blade.php
Normal file
@ -0,0 +1,9 @@
|
||||
<body>
|
||||
@include('layout.header')
|
||||
<div class="ui container">
|
||||
<div class="ui basic segment">
|
||||
@yield('page_content')
|
||||
</div>
|
||||
</div>
|
||||
@include('layout.footer')
|
||||
</body>
|
1
resources/views/layout/footer.blade.php
Normal file
1
resources/views/layout/footer.blade.php
Normal file
@ -0,0 +1 @@
|
||||
@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="utf8" />
|
||||
<title>@yield('page_title')</title>
|
||||
@include('layout.styles')
|
||||
</head>
|
3
resources/views/layout/header.blade.php
Normal file
3
resources/views/layout/header.blade.php
Normal file
@ -0,0 +1,3 @@
|
||||
<header class="ui container">
|
||||
@include('layout.menu')
|
||||
</header>
|
4
resources/views/layout/menu.blade.php
Normal file
4
resources/views/layout/menu.blade.php
Normal file
@ -0,0 +1,4 @@
|
||||
<nav class="ui menu">
|
||||
<a class="item" href="{}">Inicio</a>
|
||||
<a class="item" href="{}/create">Crear</a>
|
||||
</nav>
|
13
resources/views/layout/scripts.blade.php
Normal file
13
resources/views/layout/scripts.blade.php
Normal file
@ -0,0 +1,13 @@
|
||||
@if (isset($assets->scripts))
|
||||
@foreach ($assets->scripts as $script)
|
||||
<script type="text/javascript" src="{{$script}}"></script>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(() => {
|
||||
@stack('global_script')
|
||||
})
|
||||
</script>
|
||||
|
||||
@stack('scripts')
|
16
resources/views/layout/styles.blade.php
Normal file
16
resources/views/layout/styles.blade.php
Normal file
@ -0,0 +1,16 @@
|
||||
@if (isset($assets->styles))
|
||||
@foreach ($assets->styles as $style)
|
||||
<link rel="stylesheet" type="text/css" href="{{$style}}" />
|
||||
@endforeach
|
||||
@endif
|
||||
@if (isset($assets->fonts))
|
||||
@foreach ($assets->fonts as $font)
|
||||
<link href="{{$font}}" />
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@stack('styles')
|
||||
|
||||
<style type="text/css">
|
||||
@stack('global_style')
|
||||
</style>
|
Reference in New Issue
Block a user