jcadima
8/22/2017 - 5:41 AM

/views/project/projects.blade.php

/views/project/projects.blade.php


@extends('layout')

@section('content')


<h1>LIST OF ACTIVE PROJECTS</h1>

<table class="table table-striped">
    <thead>
      <tr>
        <th>Project Name</th>
        <th>Task List</th>
      </tr>
    </thead>

@if ( !$projects->isEmpty() ) 
    <tbody>
    @foreach ( $projects  as $project)
      <tr>
        <td>{{ $project->project_name }} </td>
        <td>
			<a href="{{ route('task.list', [ 'projectid' => $project->id ]) }}">List all tasks</a>
        </td>

      </tr>

    @endforeach
    </tbody>
@else 
    <p><em>There are no tasks assigned yet</em></p>
@endif


</table>





@stop