Skip to content

Commit

Permalink
Fix #737 -Only display comma & address2 if not Null
Browse files Browse the repository at this point in the history
  • Loading branch information
madd15 committed Apr 9, 2015
1 parent 9de083a commit 1a4f148
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/views/backend/locations/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@
@foreach ($locations as $location)
<tr>
<td>{{{ $location->name }}}</td>
<td>{{{ $location->address }}}, {{{ $location->address2 }}} </td>
<td>{{{ $location->address }}}
@if($location->address2 != '')
, {{{ $location->address2 }}}
@endif
</td>
<td>{{{ $location->city }}}, {{{ strtoupper($location->state) }}} {{{ strtoupper($location->country) }}} </td>
<td>
<a href="{{ route('update/location', $location->id) }}" class="btn btn-warning btn-sm"><i class="fa fa-pencil icon-white"></i></a>
Expand Down

0 comments on commit 1a4f148

Please sign in to comment.