Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table class="table table-striped">
- <tr>
- <?php
- for ($i=1;$i<=8;$i++)
- {
- echo "<td>";
- echo "<b>Col-".$i."</b><br>";
- for ($j=1;$j<=15;$j++)
- {
- echo "Row-".$j."<br>";
- }
- echo "</td>";
- }
- ?>
- </tr>
- </table>
- <form action='/display' method="post">
- <table style="table-layout: fixed; width:100%;" border=1>
- {!! csrf_field() !!}
- <thead>
- <tr>
- @foreach($todo as $todo)
- <td>
- {{$todo->status}}
- @foreach($todo1 as $todo1)
- <table>
- <tr>
- <td>
- {{$todo1->summary}}
- </td>
- </tr>
- </table>
- @endforeach
- </td>
- @endforeach
- </tr>
- </thead>
- </table>
- <?php
- namespace AppHttpControllers;
- use AppTodo;
- use IlluminateHttpRequest;
- use IlluminateSupportFacadesDB;
- //use IlluminateDatabaseMySqlConnection;
- class TodoController extends Controller
- {
- public function index()
- {
- $todo=DB::table('todos')->select('status')->groupBy('status')->get();
- //dd($todo);
- $todo1=DB::table('todos')->where('status','todo')->get();
- //dd($todo1);
- return view ('display',compact('todo1','todo'));
- }
- }
- ErrorException
- Trying to get property of non-object (View: lar4/resources/views/display.blade.php)
Add Comment
Please, Sign In to add comment