/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $cuentas_bancarias = CuentaBancaria::all();
     $fecha = Carbon::today()->toDateString();
     $solicitudes = array();
     $solicitudes = Solicitud::whereIn('estatus', ['Autorizada', 'Pago Parcial'])->with('proyecto', 'benef')->get();
     $reqs = array();
     $reqs = Req::whereEstatus('Autorizada')->with('ocs.benef', 'proyecto')->get();
     return view('egresos.generarEgresos', compact('solicitudes', 'reqs', 'cuentas_bancarias', 'fecha'));
 }
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create($soldep_id)
 {
     $soldep = SolDeposito::findOrFail($soldep_id);
     $fondo_filto = $soldep->fondo_id;
     $solicitudes = array();
     $solicitudes = Solicitud::whereEstatus('Autorizada')->with('proyecto', 'benef')->whereHas('proyecto', function ($query) use($fondo_filto) {
         $query->whereHas('fondos', function ($fondos_query) use($fondo_filto) {
             $fondos_query->where('fondo_id', '=', $fondo_filto);
         });
     })->get();
     $reqs = array();
     $reqs = Req::whereEstatus('Autorizada')->with('ocs.benef', 'proyecto')->whereHas('proyecto', function ($query) use($fondo_filto) {
         $query->whereHas('fondos', function ($fondos_query) use($fondo_filto) {
             $fondos_query->where('fondo_id', '=', $fondo_filto);
         });
     })->get();
     return view('soldep.formSolDepDocs', compact('soldep', 'solicitudes', 'reqs'));
 }
 public function seleccionarReq()
 {
     $reqs = Req::whereEstatus('Enviada')->get();
     $reqs->load('urg');
     return view('reqs.formRecibirReq', compact('reqs'));
 }