Example #1
0
 public function compose(View $view)
 {
     Carbon::setLocale('es');
     $UltReg = Inventario::UltimoRegistrado();
     $count_ord = Ordenes::count();
     $datos_pedido = Ordenes::orderBy('id', 'desc')->get();
     //$datos_pedido = Ordenes::orderBy('id', 'desc')->get();
     $PorEnviar = Ordenes::getPorenviar()->count();
     $Enviado = Ordenes::getEnviado()->get();
     //dd($PorEnviar[0]->fecha);
     //dd($PorEnviar);
     $view->with(['UltReg' => $UltReg, 'count_ord' => $count_ord, 'datos_pedido' => $datos_pedido, 'PorEnviar' => $PorEnviar, 'Enviado' => $Enviado]);
 }
Example #2
0
 public static function getPorenviar()
 {
     $datos = Ordenes::where('estatus', '=', 'Por Enviar')->OrderBy('id', 'ASC');
     return $datos;
 }
Example #3
0
<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::resource('herramienta', 'HerramientaController');
Route::get('graciaspago', function () {
    $datos = \App\Ordenes::find(1);
    //dd($datos->inventario->descr);
    //return view('correos/graciaspago', ['datos' => $datos]);
});
Route::resource('mail', 'MailController');
Route::get('logs', '\\Rap2hpoutre\\LaravelLogViewer\\LogViewerController@index');
//Route::pattern('id', '\d+');  //Se define solo los parametros van a hacer numeros
Route::get('/', 'PrincipalController@index');
Route::get('usuarios/{id}/restaurar', ['uses' => 'UsersController@restaurar', 'as' => 'usuarios.restaurar']);
Route::get('usuarios/eliminada', 'UsersController@eliminada');
Route::resource('usuarios', 'UsersController');
Route::resource('movil', 'MovilController');
Route::resource('migracion', 'MigracionController');
Route::get('migracion/imagenes', ['uses' => 'MigracionController@imagenes', 'as' => 'migracion.imagenes']);
Route::post('migracion/saveimagenes', ['uses' => 'MigracionController@saveimagenes', 'as' => 'migracion.saveimagenes']);
/*Route::get('imagenes/index', [
	'uses' => 'ImagenesController@index',