@extends('layouts.landing') @section('title', 'Goals') @section('content')
@forelse ($goals as $goal)
@include('elements.goal-progress')
{{$goal->name}}

{{\Carbon\Carbon::parse($goal->created_at)->toFormattedDateString()}} - {{\Carbon\Carbon::parse($goal->end_date)->toFormattedDateString()}}

{!! $goal->description !!}

@forelse ($goal->targets as $target)

{!! $target->description !!}

{{\Carbon\Carbon::parse($target->created_at)->toFormattedDateString()}} - {{\Carbon\Carbon::parse($target->date)->toFormattedDateString()}}
target_status == 1 ? 'checked' : ''}}>
@empty
Targets

Make your goals a reality

Create mesurable targets
@endforelse @if(count($goal->targets) > 0) @endif
@empty
Create Goals and Targets

Make your goals a reality

Create goals break them down into mesurable targets
@endforelse
@if(count($goals) > 0)
@endif @include('elements.create-goal') @include('elements.edit-goal') @include('elements.create-target') @include('elements.edit-target') @endsection