Skip to content

Commit

Permalink
Add not provided messahe if heads 0
Browse files Browse the repository at this point in the history
  • Loading branch information
heimdallrj committed May 31, 2017
1 parent f2208f0 commit ce5ed17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/frontend/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
@if($need->heads && $need->heads > 0)
<td data-xs-label="පිරිස">{{ $need->heads }}</td>
@else
<td data-xs-label="පිරිස">N/A</td>
<td data-xs-label="පිරිස">Not provided</td>
@endif
<td data-xs-label="ඇතුල්කලේ">{{ $need->created_at }}</td>
<td>
Expand Down
8 changes: 7 additions & 1 deletion resources/views/frontend/needs/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@
<td data-xs-label="ලිපිනය">{{ str_limit($need->address, 200) }}</td>
<td data-xs-label="නගරය">{{ $need->city }}</td>
<td data-xs-label="දුරකථන">{{ $need->telephone }}</td>
<td data-xs-label="පිරිස">{{ $need->heads }}</td>

@if($need->heads && $need->heads > 0)
<td data-xs-label="පිරිස">{{ $need->heads }}</td>
@else
<td data-xs-label="පිරිස">Not provided</td>
@endif

<td data-xs-label="ඇතුල්කලේ">{{ $need->created_at }}</td>
<!-- <td>
<button type="button" class="btn btn-primary read-needs" data-id="{{ $need->id }}">Read full</button>
Expand Down

0 comments on commit ce5ed17

Please sign in to comment.