diff --git a/app/Http/Controllers/ProductoController.php b/app/Http/Controllers/ProductoController.php index 981861d..c7577d6 100644 --- a/app/Http/Controllers/ProductoController.php +++ b/app/Http/Controllers/ProductoController.php @@ -13,7 +13,7 @@ class ProductoController extends Controller */ public function __construct() { - $this->middleware('auth'); + $this->middleware(['auth','subpedido']); } /** diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index 8fdf11b..0ea5972 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -63,6 +63,7 @@ class Kernel extends HttpKernel 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, + 'subpedido' => \App\Http\Middleware\Subpedido::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, ]; diff --git a/app/Http/Middleware/Subpedido.php b/app/Http/Middleware/Subpedido.php new file mode 100644 index 0000000..3b64cdd --- /dev/null +++ b/app/Http/Middleware/Subpedido.php @@ -0,0 +1,23 @@ +route('subpedidos.create'); + } + return $next($request); + } +} diff --git a/public/assets/.directory b/public/assets/.directory new file mode 100644 index 0000000..628a120 --- /dev/null +++ b/public/assets/.directory @@ -0,0 +1,6 @@ +[Dolphin] +HeaderColumnWidths=641,72,95,143 +Timestamp=2021,7,28,19,15,55.598 +Version=4 +ViewMode=1 +VisibleRoles=Details_text,Details_type,Details_size,Details_modificationtime,CustomizedDetails diff --git a/public/assets/logoMPS.png b/public/assets/logoMPS.png new file mode 100644 index 0000000..8cd8070 Binary files /dev/null and b/public/assets/logoMPS.png differ diff --git a/public/js/app.js b/public/js/app.js new file mode 100644 index 0000000..a91dc0a --- /dev/null +++ b/public/js/app.js @@ -0,0 +1,48 @@ +window.Event = new Vue(); + +Vue.component('nav-bar', { + template: ` + `, + data() { + return { + isActive: false + } + }, + mounted() { + console.log("ready"); + }, + methods: { + toggleState() { + this.isActive = !this.isActive; + } + } +}); + +new Vue({ + el: '#app' +}); \ No newline at end of file diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index a911b7b..ff04508 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -3,7 +3,7 @@ - Compras del MPS + {{ config('app.name', 'Compras del MPS') }} diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 9e795f4..b02f652 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -7,74 +7,32 @@ - {{ config('app.name', 'Laravel') }} + {{ config('app.name', 'Compras del MPS') }} - - - - + +
- + + + +
@yield('content')
+ + diff --git a/resources/views/subpedidos_create.blade.php b/resources/views/subpedidos_create.blade.php new file mode 100644 index 0000000..d5061a6 --- /dev/null +++ b/resources/views/subpedidos_create.blade.php @@ -0,0 +1,5 @@ +@extends('layouts.app') + +@section('content') +SUBPEDIDOS +@endsection diff --git a/routes/web.php b/routes/web.php index 50e09de..a65726c 100644 --- a/routes/web.php +++ b/routes/web.php @@ -15,4 +15,10 @@ use Illuminate\Support\Facades\Route; Route::get('/', 'ProductoController@index')->name('productos'); -Auth::routes(['register' => false]); \ No newline at end of file +Auth::routes(['register' => false]); + +Route::get('/productos', 'ProductoController@index')->name('productos.index'); + +Route::get('/subpedidos', function() { + return view('subpedidos_create'); +})->name('subpedidos.create')->middleware('auth');