Compare commits

..

No commits in common. "aeb5cba6075aca22d4fd200428ed214ee1e7d06c" and "d4bffd1df83533c3cf642029bf7ba107f3d365ea" have entirely different histories.

7 changed files with 13 additions and 122 deletions

View file

@ -1,13 +0,0 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class OllasController extends Controller
{
public function show()
{
return view('auth/ollas_login');
}
}

View file

@ -0,0 +1,12 @@
<template>
<div class="buttons is-right">
<a class="button is-danger is-light is-small" href="/admin">
<span class="icon">
<i class="fa fa-solid fa-user-check"></i>
</span>
<span>
Admin
</span>
</a>
</div>
</template>

View file

@ -1,36 +0,0 @@
<template>
<a class="button is-light is-small fixed-width" :class="color" :href="href">
<span class="icon">
<i class="fa fa-solid fa-user-check"></i>
</span>
<span>
{{ nombre }}
</span>
</a>
</template>
<script>
export default {
props: {
nombre: {
type: String,
required: true
},
href: {
type: String,
required: true
},
color: {
type: String,
required: true
},
},
}
</script>
<style>
.fixed-width {
min-width: 6rem;
}
</style>

View file

@ -10,18 +10,6 @@
<body>
<section class="section">
<div id="root" class="container">
<div class="buttons is-right">
<comunes-boton-login
href="/"
nombre="Pedidos"
color="is-warning"
></comunes-boton-login>
<comunes-boton-login
href="/ollas"
nombre="Ollas"
color="is-warning"
></comunes-boton-login>
</div>
<h1 class="title has-text-white">
Administración de Pedidos MPS
</h1>

View file

@ -11,18 +11,7 @@
<body>
<section class="section">
<div id="root" class="container">
<div class="buttons is-right">
<comunes-boton-login
href="/admin"
nombre="Admin"
color="is-danger"
></comunes-boton-login>
<comunes-boton-login
href="/ollas"
nombre="Ollas"
color="is-danger"
></comunes-boton-login>
</div>
<admin-boton-login></admin-boton-login>
<h1 class="title">
Pedidos MPS
</h1>

View file

@ -1,47 +0,0 @@
<!DOCTYPE html>
<html class="has-background-info" lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ config('app.name', 'Pedidos del MPS') }}</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.css">
<link rel="stylesheet" href="{{ mix('css/app.css') }}">
<script src="https://kit.fontawesome.com/9235d1c676.js" crossorigin="anonymous"></script>
</head>
<body>
<section class="section">
<div id="root" class="container">
<div class="buttons is-right">
<comunes-boton-login
href="/"
nombre="Pedidos"
color="is-warning"
></comunes-boton-login>
<comunes-boton-login
href="/admin"
nombre="Admin"
color="is-warning"
></comunes-boton-login>
</div>
<h1 class="title">
Pedidos MPS
</h1>
<p class="subtitle">
Bienvenidx a la sección de pedidos de ollas de la aplicación del <strong>Mercado Popular de Subsistencia</strong>
</p>
@error('name')
<div class="notification is-danger">
Contraseña incorrecta, intentalo nuevamente.
</div>
@enderror
<comunes-region-select></comunes-region-select>
<form method="post" action="login">
@csrf
<comunes-barrio-select></comunes-barrio-select>
<pedidos-login></pedidos-login>
</form>
</div>
</section>
<script src="{{ mix('js/app.js') }}" defer></script>
</body>
</html>

View file

@ -25,8 +25,6 @@ Route::get('/productos', 'ProductoController@index')->name('productos.index');
Route::get('/admin', 'AdminController@show')->name('admin_login.show');
Route::get('/ollas', 'OllasController@show')->name('ollas_login.show');
Route::get('/admin/obtener_sesion', function() {
$sesion = [
'gdc' => session("admin_gdc")