commit resources carpeta

This commit is contained in:
Marcos Elias Rios Nuñez 2025-09-11 11:51:49 -03:00
parent 856c2a8836
commit 8bcd37d8a5
7 changed files with 352 additions and 0 deletions

11
resources/css/app.css Normal file
View 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
View File

@ -0,0 +1 @@
import './bootstrap';

4
resources/js/bootstrap.js vendored Normal file
View File

@ -0,0 +1,4 @@
import axios from 'axios';
window.axios = axios;
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';

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

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

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

File diff suppressed because one or more lines are too long