Written with StackEdit.
Please i have this list of data i want to display from the database but i want to give a label of new to a new data and nothing to an old data how do i achieve this in laravel
FOR EXAMPLE
THE CODE
<!-- desktop view -->
<div class="large-2 columns show-for-large-only">
<span class="new-user-list-label text-center montserrat-font white-text small-text-13">New</span>
@if ($user->created_at == Carbon::now())
@elseif ($user->updated_at == Carbon::now())
<span class="new-user-list-label text-center montserrat-font white-text small-text-13">New</span>
@endif
<span class="fa-stack fa-2x large-centered">
<i class="fa fa-circle fa-stack-2x tq-dark-blue-color"></i>
<i class="fa fa-user fa-stack-1x fa-inverse"></i>
</span>
<input name="" type="checkbox" class="checkbox-size-20">
</div>
<div class="large-10 columns show-for-large-only">
<ul class="no-bullet">
<li><h6 class="text-left montserrat-font small-text-15 capitalize"><b>USERNAME | </b> </h6></li>
<li><h6 class="text-left montserrat-font small-text-15 lowercase"><b class="uppercase">EMAIL | </b> </h6></li>
<li><h6 class="text-left montserrat-font small-text-15"><b>REGISTERED | </b> </h6></li>
<li><h6 class="text-left montserrat-font small-text-15"><b>ATTIRES MADE | </b> Attires made</h6></li>
<li><a href="#"><h6 class="text-left montserrat-font footer-links small-text-15">More info...</h6></a></li>
</ul>
</div>
<!-- /end desktop view -->
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/29jXyjm
via IFTTT
Aucun commentaire:
Enregistrer un commentaire