Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $datos = $request->input("select");
- $precio = $request->input("Precio");
- $estudios =$request->input('CheckEstudio');
- $conte = count($estudios);
- foreach ($estudios as $key) {
- $sql2[]=DB::table('actividades')
- ->join('proyectos','actividades.id_actividad','proyectos.id_actividad')
- ->select('nombre_actividad')
- ->where('proyectos.id_estudio',$key)->get();
- }
- array:4 [▼
- 0 => array:11 [▼
- 0 => {#188 ▼
- +"nombre_actividad": "2 MODELADO DEL SISTEMA"
- }
- 1 => {#183 ▼
- +"nombre_actividad": "ANÁLISIS FLUJO DE CARGA"
- }
- 2 => {#185 ▼
- +"nombre_actividad": "ANÁLISIS DE CORTO CIRCUITO "
- }
- 3 => {#181 ▼
- +"nombre_actividad": "ANÁLISIS DE PÉRDIDAS DEL SISTEMA "
- }
- 4 => {#189 ▶}
- 5 => {#186 ▶}
- 6 => {#187 ▶}
- 7 => {#190 ▶}
- 8 => {#191 ▶}
- 9 => {#192 ▶}
- 10 => {#193 ▶}
- ]
- 1 => array:8 [▶]
- 2 => array:4 [▶]
- 3 => array:4 [▶]
- ]
- return view('actividades',compact('datos','count','consultaActividades','sql2','precio'));
- // dd($sql2) ;
- }
- }
- @foreach($sql2 as $sql)
- <tr>
- <td>{{ $sql->nombre_actividad }}</td>
- {{-- @php
- for ($i=0; $i < $count ; $i++) {
- echo '<td><input type="text" name"txt[]" value="'.$precio.'"></td>';
- }
- @endphp --}}
- <fieldset id="fieldt"></fieldset>
- </tr>
- @endforeach
Add Comment
Please, Sign In to add comment