<?php $__env->startSection('title', 'Perfíl Cumpleaños'); ?>
<?php $__env->startSection('content'); ?>
    <?php /*<?php echo $__env->make('admin.layouts.partials.breadcrumbs', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>*/ ?>
    <div class="card c-timeline" id="profile-main">
        <?php echo $__env->make('admin.personas.perfil.partials.profile', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

        <div class="pm-body clearfix">

            <ul class="tab-nav tn-justified">
                <li class="waves-effect"><a href="<?php echo e(route('admin.perfil.index')); ?>">INFORMACIÓN</a></li>
                <li class="active waves-effect"><a href="<?php echo e(route('admin.perfil.cumpleanio')); ?>">SALUDOS</a></li>
            </ul>

            <div class="timeline">
                <?php if(count($messages)): ?>
                    <?php foreach($messages as $key => $message): ?>
                        <?php $errorImage = asset('img/profile/' . (($message->persona->genero == 'M') ? "man" : "women") . ".png"); ?>
                        <div class="t-view" data-tv-type="text">
                            <div class="tv-header media">

                                <a href="javascript:;" class="tvh-user pull-left">
                                    <?php echo e(Html::image(loadPhotoProfile($message->persona->foto,$message->persona->genero), $message->persona->apellidos_nombres,['class'=>'','onerror'=>"this.src='".$errorImage."'"])); ?>

                                </a>
                                <div class="media-body p-t-5">
                                    <strong class="d-block"><?php echo e($message->persona->apellidos_nombres); ?></strong>
                                    <small class="c-gray"><?php echo e(messageDate($message->created_at)); ?></small>
                                </div>

                            </div>
                            <div class="tv-body">
                                <p><?php echo e($message->message); ?></p>
                                <div class="clearfix"></div>
                            </div>
                        </div>
                    <?php endforeach; ?>
                <?php else: ?>
                    <div class="t-view" data-tv-type="image">
                        <div class="tv-header media">
                            <div class="media-body p-t-5">
                                <strong class="d-block">Aún no tienes saludos.</strong>
                            </div>
                        </div>
                    </div>
                <?php endif; ?>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
    <script>
        $(function () {

        });
    </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.template', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>