public function editCursoPagoCheque($id) { // $pago_cheque = PagoCheque::find($id); $docente = DPagoCheque::getDatosDocenteById($pago_cheque->docente_id); $curso = DPagoCheque::getDatosCursoById($pago_cheque->curso_id); //print_r($id); //exit; //Traer Docente y Actividad $helper = new Helper(); $disponible = $helper->getHelperByDominio('disponible_id'); $entregado_por = Agente::get(); $nro_memo = Remitidos::where('remitidos_id', '=', $pago_cheque->nro_memo_id)->first(); $nro_recibo = $this->traeUltimoNroRecibo(); return view('cheques.editCursoPagoCheque')->with('pago_cheque', $pago_cheque)->with('docente', $docente)->with('curso', $curso)->with('disponible', $disponible)->with('entregado_por', $entregado_por)->with('nro_memo', $nro_memo)->with('nro_recibo', $nro_recibo); }
/** * Display a listing of the resource. * * @return Response */ public function listRemitidos() { /* if ( MyAuth::check() ) { //Aca algo voy a hacer //Levanto los datos el usuario }else{ return Redirect::to('/'); } */ $input = Request::all(); //print_r($input); //CAST(field_name as SIGNED INTEGER) ->orderBy('actuacion_fecha', 'desc') //$actuaciones = Actuacion::all(); if (empty($input)) { $remitidos = Remitidos::orderBy('numero_memo', 'desc')->get(); } else { $remitidos = Remitidos::where('numero_memo', 'LIKE', '%' . $input['str_remitido'] . '%')->orWhere('dirigido', 'LIKE', '%' . $input['str_remitido'] . '%')->orderBy('numero_memo', 'desc')->get(); } //echo "<pre>"; //print_r($remitidos); //exit; return view('remitidos.listRemitidos')->with('remitidos', $remitidos); }