Example #1
0
                                    @endforeach
                                    <li><a class="fg-white" href="{{ url('activities') }}">See more activities...</a></li>
                                </ul>
                            </div>
                            @endif
                        </div>
                    </div>
                </div>
            </li>
            <li>
                <a href="#" class="dropdown-toggle">Friends</a>
                <div class="m-menu-container" data-role="dropdown" data-no-close="true">
                    <div class="grid no-margin">
                        <div class="row cells5">
                            <?php 
$profile = App\User::whereRaw('namadepan<>"" and namabelakang<>"" and tanggallahir<>"0000-00-00" and blokir=0 and foto<>1')->orderByRaw('rand()')->first();
?>
                            @if(sizeof($profile)==1)
                            <div class="cell padding10">
                                <img src="{{ url('images/foto/'.$profile->foto) }}">
                            </div>
                            <div class="cell colspan2">
                                <h2 class="fg-white text-bold text-shadow">Our Friends</h2>
                                <p class="padding20 no-padding-top no-padding-left no-padding-bottom fg-white">
                                    <?php 
$date1 = new DateTime($profile->tanggallahir);
$interval = $date1->diff(new DateTime(date("Y-m-d")));
?>


                                    @if($profile->jeniskelamin=='Male') He @else She @endif was born at {{ $profile->tempatlahir }}, {{ $interval->y }} years ago and