Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function hadPassedActivity($activity)
- {
- $result = $this->activityResults()->where('activity_id',$activity->id)->first();//line 143
- return ($result != null && $result->remarks == 'pass');
- }
- <section class="page-header">
- <a href="{{@$lesson->id}}/activity">
- <button class="btn btn-success pull-right">
- @if($lesson->activity->isAccomplished)
- View
- @else
- Design
- @endif
- Activity
- </button>
- </a>
- <h3>{{$lesson->title}}<br>
- <h5><i>{{$course->title}} lesson # {{$lesson->order}}</i></h5>
- <small id="lesd">{{$lesson->description}}</small>
- </h3>
- </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement