Skip to content

Commit

Permalink
Merge pull request #27 from talv86/master
Browse files Browse the repository at this point in the history
check to see if a value is not empty on profile page
  • Loading branch information
austintoddj committed Jul 7, 2016
2 parents 8644bd2 + a7d88bf commit c1155d5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions resources/views/backend/profile/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<li><a href="/admin/profile/{{ $data['id'] }}/edit">Settings</a></li>
</ul>

@if(isset($data['bio']))
@if(isset($data['bio']) && !empty($data['bio']))
<div class="pmb-block">
<div class="pmbb-header">
<h2><i class="zmdi zmdi-equalizer m-r-10"></i> Summary</h2>
Expand All @@ -48,19 +48,19 @@
<dt>Full Name</dt>
<dd>{{ $data['first_name'] . ' ' . $data['last_name']}}</dd>
</dl>
@if(isset($data['gender']))
@if(isset($data['gender']) && !empty($data['gender']))
<dl class="dl-horizontal">
<dt>Gender</dt>
<dd>{{ $data['gender'] }}</dd>
</dl>
@endif
@if(isset($data['birthday']))
@if(isset($data['birthday']) && !empty($data['birthday']))
<dl class="dl-horizontal">
<dt>Birthday</dt>
<dd>{{ \Carbon\Carbon::createFromFormat('Y-m-d', $data['birthday'])->format('M d, Y') }}</dd>
</dl>
@endif
@if(isset($data['relationship']))
@if(isset($data['relationship']) && !empty($data['relationship']) )
<dl class="dl-horizontal">
<dt>Relationship Status</dt>
<dd>{{ $data['relationship'] }}</dd>
Expand Down Expand Up @@ -104,19 +104,19 @@
<dd><a href="http://github.com/{{ $data['github'] }}" target="_blank">{{ $data['github'] }}</a></dd>
</dl>
@endif
@if(isset($data['address']))
@if(isset($data['address']) && !empty($data['address']))
<dl class="dl-horizontal">
<dt>Address</dt>
<dd>{{ $data['address'] }}</dd>
</dl>
@endif
@if(isset($data['city']))
@if(isset($data['city']) && !empty($data['city']))
<dl class="dl-horizontal">
<dt>City</dt>
<dd>{{ $data['city'] }}</dd>
</dl>
@endif
@if(isset($data['state']))
@if(isset($data['state']) && !empty($data['state']))
<dl class="dl-horizontal">
<dt>State</dt>
<dd>{{ $data['state'] }}</dd>
Expand Down

0 comments on commit c1155d5

Please sign in to comment.