commit resources carpeta
This commit is contained in:
parent
856c2a8836
commit
8bcd37d8a5
11
resources/css/app.css
Normal file
11
resources/css/app.css
Normal file
@ -0,0 +1,11 @@
|
||||
@import 'tailwindcss';
|
||||
|
||||
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
|
||||
@source '../../storage/framework/views/*.php';
|
||||
@source '../**/*.blade.php';
|
||||
@source '../**/*.js';
|
||||
|
||||
@theme {
|
||||
--font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
|
||||
'Segoe UI Symbol', 'Noto Color Emoji';
|
||||
}
|
||||
1
resources/js/app.js
Normal file
1
resources/js/app.js
Normal file
@ -0,0 +1 @@
|
||||
import './bootstrap';
|
||||
4
resources/js/bootstrap.js
vendored
Normal file
4
resources/js/bootstrap.js
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import axios from 'axios';
|
||||
window.axios = axios;
|
||||
|
||||
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||
10
resources/views/catalogo/crear.blade.php
Normal file
10
resources/views/catalogo/crear.blade.php
Normal file
@ -0,0 +1,10 @@
|
||||
<h1>Formulario para Crear Producto</h1>
|
||||
<form action="/catalogo" method="POST">
|
||||
<label for="nombre">Nombre:</label>
|
||||
<input type="text" name="nombre">
|
||||
<br>
|
||||
<label for="precio">Precio:</label>
|
||||
<input type="number" name="precio">
|
||||
<br>
|
||||
<button type="submit">Guardar</button>
|
||||
</form>
|
||||
18
resources/views/catalogo/index.blade.php
Normal file
18
resources/views/catalogo/index.blade.php
Normal file
@ -0,0 +1,18 @@
|
||||
<h1>Catálogo de Productos</h1>
|
||||
<a href="{{ route('catalogo.crear') }}">Crear nuevo producto</a>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nombre</th>
|
||||
<th>Precio</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($productos as $producto)
|
||||
<tr>
|
||||
<td>{{ $producto->nombre }}</td>
|
||||
<td>${{ $producto->precio }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
31
resources/views/prueba.blade.php
Normal file
31
resources/views/prueba.blade.php
Normal file
@ -0,0 +1,31 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Mi Web</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>!Hola Mundo!</h1>
|
||||
<p>Tu Dni es: {{$dni}} </p>
|
||||
</body>
|
||||
|
||||
@if (condicion)
|
||||
#Logica a resolver
|
||||
@endif
|
||||
|
||||
@if (condicion)
|
||||
#Logica a resolver
|
||||
@else
|
||||
#Logica a resolver
|
||||
@endif
|
||||
|
||||
@for ($i = 0; $i < 10; $i++)
|
||||
#El valor actual es {{ $i }}
|
||||
@endfor
|
||||
|
||||
@while (true)
|
||||
<p>Soy un bucle while infinito!</p>
|
||||
@endwhile
|
||||
|
||||
@foreach ($users as $user)
|
||||
<p>Usuario {{ $user->name }} con identificador:</p>
|
||||
@endforeach
|
||||
</html>
|
||||
277
resources/views/welcome.blade.php
Normal file
277
resources/views/welcome.blade.php
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user