You are on page 1of 3

1/8/2020 Empieza modulo facturas (eabfe2d2) · Commits · Guillermo Agudelo / transito-frontend · GitLab

Please ensure your account's recovery settings are up to date.

Commit eabfe2d2 authored 1 month ago by Guillermo Agudelo

Empieza modulo facturas

parent 30d579c2 master

No related merge requests found

Showing 7 changed files  with 57 additions and 4 deletions

  app/Http/Controllers/Admin/InvoiceController.php 0 → 100644
1 + <?php
2 +
3 + namespace App\Http\Controllers\Admin;
4 +
5 + use App\Http\Controllers\Controller;
6 + use Illuminate\Http\Request;
7 +
8 + class InvoiceController extends Controller
9 +{
10 + public function index()
11 + {
12 + return view('admin.invoices.index');
13 + }
14 +}

  app/Http/Controllers/Portal/QueueController.php

... ... @@ -7,6 +7,7 @@ use Illuminate\Http\Request;


7 7 use App\Branch;
8 8 use App\Company;
9 9 use App\Queue;
10 + use App\User;
10 11
11 12 class QueueController extends Controller
12 13 {
... ...

  app/Http/Controllers/QueueController.php

... ... @@ -112,8 +112,6 @@ class QueueController extends Controller


112 112
113 113 event(new QueueCreated($queue, $data['id-branch']));
114 114
115 - // if(\LfAuth::isClient()) event(new QueueCreated($queue, \State::get('user.id')));
116 -
117 115 feedback('success', 'Se creó el turno');
118 116
119 117 if ($request->get('from') == 'portal') return redirect()->route('portal.queue.index');
... ...

  resources/views/admin/dashboard.blade.php

... ... @@ -34,6 +34,10 @@


34 34 <i class="fa fa-user-tag text-warning"></i>
35 35 Administrar los vínculos Trámite/Empleado
36 36 </a>
37 + <a href="{{ route('admin.invoices.index') }}" class="btn btn-outline-primary btn-xl mb-3">
38 + <i class="fa fa-file-invoice-dollar text-info"></i>
39 + Administrar Facturas
40 + </a>
37 41 @endadmin
38 42 </div>
39 43
... ...

https://gitlab.com/guille.agudelo/transito-frontend/-/commit/eabfe2d20115c6fbe8b2b550801cea720cda8c7e 1/3
1/8/2020 Empieza modulo facturas (eabfe2d2) · Commits · Guillermo Agudelo / transito-frontend · GitLab

  resources/views/admin/invoices/index.blade.php 0 → 100644
1 + @extends('layouts.app', ['title' => 'Administrar Facturas'])
2 + @section('content')
3 + <div class="container" id="invoices">
4 + <div class="mb-3 d-flex justify-content-end">
5 + <button class="btn btn-primary" @click="create">Carga Masiva de Facturas</button>
6 + </div>
7 + <div class="w-100" style="overflow-x: scroll">
8 + @{{msg}}
9 + </div>
10 +
11 + </div>
12 + @endsection
13 + @push('js')
14 + <script>
15 + const invoices = new Vue({
16 + el: '#invoices',
17 + data() {
18 + return {
19 + msg: 'bla'
20 + }
21 + },
22 + })
23 + </script>
24 + @endpush

  resources/views/layouts/navbars/sidebar.blade.php
... ... @@ -149,6 +149,11 @@
149 149 <i class="fa fa-user-tag text-warning"></i>Vínculos Trámite/Empleado
150 150 </a>
151 151 </li>
152 + <li class="nav-item">
153 + <a class="nav-link" href="{{ route('admin.invoices.index') }}">
154 + <i class="fa fa-file-invoice-dollar text-info"></i>Facturas
155 + </a>
156 + </li>
152 157 @endadmin
153 158 @endif
154 159
... ... @@ -160,7 +165,7 @@
160 165 </a>
161 166 </li>
162 167
163 - @admin()
168 + @egt_operator()
164 169 <li class="nav-item">
165 170 <a class="nav-link" href="{{ route('queue.index') }}">
166 171 <i class="fa fa-angle-double-right text-orange"></i>Cola
... ... @@ -176,7 +181,7 @@
176 181 <i class="ni ni-tv-2 text-warning"></i>Modo TV
177 182 </a>
178 183 </li>
179 - @endadmin
184 + @endegt_operator
180 185
181 186 @client()
182 187 <li class="nav-item">
... ...

  routes/web.php
... ... @@ -91,6 +91,13 @@ Route::group([
91 91 Route::post('', 'ServiceEmployeeController@store')->name('store');
92 92 Route::delete('', 'ServiceEmployeeController@destroy')->name('destroy');
93 93 });
94 +
95 + Route::group([
96 + 'prefix' => 'invoices',
97 + 'as' => 'invoices.'
98 + ], function() {
99 + Route::get('', 'InvoiceController@index')->name('index');
100 + });
94 101 });
95 102
https://gitlab.com/guille.agudelo/transito-frontend/-/commit/eabfe2d20115c6fbe8b2b550801cea720cda8c7e 2/3
1/8/2020 Empieza modulo facturas (eabfe2d2) · Commits · Guillermo Agudelo / transito-frontend · GitLab

96 103
... ...

Write a comment or drag your files here…

Markdown and quick actions are supported

https://gitlab.com/guille.agudelo/transito-frontend/-/commit/eabfe2d20115c6fbe8b2b550801cea720cda8c7e 3/3

You might also like