186 lines
9.1 KiB
PHP
186 lines
9.1 KiB
PHP
<?php $__env->startSection('social_media'); ?>
|
|
<meta property="fb:app_id" content="<?php echo e(config('social-media-manager.facebook.app_id')); ?>"/>
|
|
<meta property="og:type" content="website"/>
|
|
<meta property="og:url" content="<?php echo e(URL::create($model)); ?>"/>
|
|
<meta property="og:title" content="<?php echo e(Post::getSocialMediaTitle($model)); ?>"/>
|
|
<?php if($model->type == 'dienst'): ?>
|
|
<meta property="og:description" content="<?php echo e(Post::getSocialMediaServiceDescription($model)); ?>"/>
|
|
<?php elseif($model->type == 'fahrzeug'): ?>
|
|
<meta property="og:description" content="<?php echo e(Post::getSocialMediaDescription($model)); ?>"/>
|
|
<?php elseif($model->type == 'seite'): ?>
|
|
<meta property="og:description" content="<?php echo e(Post::getSocialMediaDescription($model)); ?>"/>
|
|
<?php else: ?>
|
|
<meta property="og:description" content="<?php echo e(Post::getSocialMediaDescription($model)); ?>"/>
|
|
<?php endif; ?>
|
|
|
|
<meta property="og:image" content="<?php echo e(Post::getDocumentWebPath($model)); ?>"/>
|
|
<?php $__env->stopSection(); ?>
|
|
|
|
<?php $__env->startSection('content'); ?>
|
|
<article class="post-item card pt-3 pb-3 mb-lg-5 shadow-sm <?php echo e($model->type); ?>">
|
|
<?php echo $__env->make('inc.forms.quickEdit', ['post' => $model], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
|
<div class="row">
|
|
<h1 class="col-lg-12 card-title">
|
|
<?php echo $__env->make('inc.views.details.title.titleSwitcher', ['post' => $model], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
|
</h1>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<hr>
|
|
</div>
|
|
</div>
|
|
<?php if($model->type != 'seite'): ?>
|
|
<div class="row">
|
|
<div class="col-lg-6">
|
|
<?php echo $__env->make('inc.views.details.subtitle_left.subtitleLeftSwitcher', ['post' => $model], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
|
</div>
|
|
<div class="col-lg-6 text-right">
|
|
<?php echo $__env->make('inc.views.details.subtitle_right.subtitleRightSwitcher', ['post' => $model], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<hr>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php if(isset($model->filename)): ?>
|
|
<?php if($model->filename != ''): ?>
|
|
<a href="#" data-toggle="modal" data-target="#postGalery">
|
|
<div class="row">
|
|
<img class="col-lg-12 img-fluid img-preview-details rounded" src="/uploads/<?php echo e($model->type); ?>/<?php echo e($model->id); ?>/<?php echo e($model->filename); ?>" alt="">
|
|
</div>
|
|
</a>
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<hr>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<div class="row">
|
|
<div class="col-lg-12 card-content">
|
|
<?php echo $__env->make('inc.views.details.content.contentSwitcher', ['post' => $model], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row mt-3">
|
|
<div class="col-lg-12 social-share">
|
|
<?php echo $__env->make('inc.social_media.facebook.likeShare', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
|
<?php echo $__env->make('inc.social_media.twitter.tweet', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
|
</div>
|
|
</div>
|
|
<?php echo $__env->make('inc.views.details.additional_content.additionalContentSwitcher', ['post' => $model], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
|
</article>
|
|
|
|
<!-- Modale Bildergalerie -->
|
|
|
|
<?php if(isset($model->documents)): ?>
|
|
<div class="modal fade" id="postGalery">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
|
|
<!-- Modal Header -->
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
</div>
|
|
|
|
<!-- Modal body -->
|
|
<div class="modal-body">
|
|
<div id='carousel' class='carousel slide' data-ride='carousel'>
|
|
<!-- Wrapper for slides -->
|
|
<div class='carousel-outer'>
|
|
<div class='carousel-inner'>
|
|
<?php $__currentLoopData = $model->documents; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $document): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<?php if($document['filetype'] == 'image'): ?>
|
|
<div class='carousel-item <?php if($loop->first): ?> active <?php endif; ?>'>
|
|
<img src='<?php echo e($document['path']); ?>' alt='' class="d-block w-100"/>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
</div>
|
|
|
|
<!-- Controls -->
|
|
<a class="carousel-control-prev" href="#carousel" role="button" data-slide="prev">
|
|
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
|
<span class="sr-only">weiter</span>
|
|
</a>
|
|
<a class="carousel-control-next" href="#carousel" role="button" data-slide="next">
|
|
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
|
<span class="sr-only">zurück</span>
|
|
</a>
|
|
</div>
|
|
|
|
<!-- Indicators -->
|
|
<ol class='carousel-indicators'>
|
|
<?php $__currentLoopData = $model->documents; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $document): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<?php if($document['filetype'] == 'image'): ?>
|
|
<li data-target='#carousel' data-slide-to='<?php echo e($loop->index); ?>' class='<?php if($loop->first): ?> active <?php endif; ?>'>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Modal footer -->
|
|
<div class="modal-footer">
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if(isset($newestImageModels)): ?>
|
|
<div class="row mt-4">
|
|
<h4 class="col-lg-12"><?php echo e($newestLabel); ?></h4>
|
|
</div>
|
|
<?php $__currentLoopData = $newestImageModels->chunk(3); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $posts): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<div class="row mb-5">
|
|
<?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<div class="col-lg-4 col-sm-6 post-item-container mb-5">
|
|
<?php echo $__env->make('inc.views.cardPreview', ['post' => $post], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
|
</div>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
</div>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if(isset($similarImageModels)): ?>
|
|
<div class="row mt-4">
|
|
<h4 class="col-lg-12"><?php echo e($similarLabel); ?></h4>
|
|
</div>
|
|
<?php $__currentLoopData = $similarImageModels->chunk(3); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $posts): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<div class="row mb-5">
|
|
<?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<div class="col-lg-4 col-sm-6 post-item-container mb-5">
|
|
<?php echo $__env->make('inc.views.cardPreview', ['post' => $post], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
|
</div>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
</div>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if(isset($furtherImageModels)): ?>
|
|
<div class="row mt-4">
|
|
<h4 class="col-lg-12"><?php echo e($furtherLabel); ?></h4>
|
|
</div>
|
|
<?php $__currentLoopData = $furtherImageModels->chunk(3); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $posts): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<div class="row mb-5">
|
|
<?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<div class="col-lg-4 col-sm-6 post-item-container mb-5">
|
|
<?php echo $__env->make('inc.views.cardPreview', ['post' => $post], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
|
</div>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
</div>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
<?php endif; ?>
|
|
<?php $__env->stopSection(); ?>
|
|
|
|
<?php $__env->startSection('sidebar'); ?>
|
|
##parent-placeholder-19bd1503d9bad449304cc6b4e977b74bac6cc771##
|
|
<?php if(isset($sidebar)): ?>
|
|
<?php echo $__env->make('inc.views.sidebar.sidebarSwitcher', ['sidebar' => $sidebar], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
|
<?php endif; ?>
|
|
<?php $__env->stopSection(); ?>
|
|
<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|