kriszpchicken's avatar

Displaying if a task is in progress or finished

I am doing an easy task manager just to do same laravel, and I want to be able to change if a task's status is still in progress or already finished. Of course the status should be a boolean, but I am not sure how to implement it in the create form, and how to make it show text, and not the number 1 or 0 in my index page. Any idead would be appreciated.

0 likes
1 reply
Sergiu17's avatar

You mean?

@if ($taks->completed)
  {{ 'Task completed' }} 
@else
  {{ 'Tasks incomplete' }}
@endif

Please or to participate in this conversation.