Server IP : 23.254.227.96 / Your IP : 216.73.216.7 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/viralblo/instantblog/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?> <div class="container mt-5"> <div class="row"> <div class="col-md-8"> <?php if(auth()->guard()->check()): ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('moderator-post', $post)): ?> <div class="d-flex align-items-center card-info border-one less-pad card-shadow"> <i class="icon-robot fs-4 me-2"></i> <small> <?php echo app('translator')->get('messages.loged'); ?> <strong class="text-capitalize"><?php echo e(auth()->user()->role); ?>.</strong> <?php if(isset($editby)): ?> <?php echo app('translator')->get('messages.editby'); ?> <?php echo e($editby->username); ?> - <?php echo e($post->updated_at->diffForHumans()); ?> <?php endif; ?> </small> <span class="ms-auto"> <a href="<?php echo e(url('/home/' . $post->id . '/edit')); ?>" class="text-primary me-4" data-bs-toggle="tooltip" data-bs-placement="bottom" title="<?php echo app('translator')->get('messages.edit'); ?>"><i class="icon-pencil-square"></i></a> <a href="<?php echo e(url('/home/' . $post->id)); ?>" class="text-danger me-2" data-bs-toggle="tooltip" data-bs-placement="bottom" title="<?php echo app('translator')->get('messages.delete'); ?>"><i class="icon-trash"></i></a> </span> </div> <?php elseif (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('own-post', $post)): ?> <div class="d-flex align-items-center card-info border-one less-pad card-shadow"> <i class="icon-robot fs-4 me-2"></i> <small> <strong class="text-capitalize"><?php echo e($post->user->name); ?> </strong><?php echo app('translator')->get('messages.yourpost'); ?> <?php if(isset($editby)): ?> <?php echo app('translator')->get('messages.editby'); ?> <?php echo e($editby->username); ?> - <?php echo e($post->updated_at->diffForHumans()); ?> <?php endif; ?> </small> <span class="ms-auto"> <a href="<?php echo e(url('/home/' . $post->id . '/edit')); ?>" class="text-primary me-4" data-bs-toggle="tooltip" data-bs-placement="bottom" title="<?php echo app('translator')->get('messages.edit'); ?>"><i class="icon-pencil-square"></i></a> <a href="<?php echo e(url('/home/' . $post->id)); ?>" class="text-danger me-2" data-bs-toggle="tooltip" data-bs-placement="bottom" title="<?php echo app('translator')->get('messages.delete'); ?>"><i class="icon-trash"></i></a> </span> </div> <?php endif; ?> <?php endif; ?> <div class="card border-one card-shadow"> <?php if(!empty($post->post_video)): ?> <div class="ratio ratio-16x9 mb-3 card-img-top border-youtube"> <iframe src="https://www.youtube.com/embed/<?php echo e($post->post_video); ?>" allowfullscreen></iframe> </div> <?php elseif(!empty($post->post_media)): ?> <img class="card-img-top img-fluid border-two" src="<?php echo e(url('/uploads/' . $post->post_media)); ?>" alt="<?php echo e($post->media_alt); ?>"> <?php endif; ?> <div class="card-body"> <div class="list-item mb-3"> <div class="list-left"> <a href="<?php echo e(url('/profile/' .$post->user->username)); ?>"> <?php if(substr( $post->user->avatar, 0, 4 ) === "http"): ?> <img class="avatar img-fluid rounded-circle" src="<?php echo e($post->user->avatar); ?>" alt="<?php echo e($post->user->username); ?>"> <?php else: ?> <img class="avatar img-fluid rounded-circle" src="<?php echo e(url('/images/' . $post->user->avatar)); ?>" alt="<?php echo e($post->user->username); ?>"> <?php endif; ?> </a> </div> <div class="list-body"> <div class="text-ellipsis"> <a class="nocolor" href="<?php echo e(url('/profile/' .$post->user->username)); ?>"><?php echo e($post->user->name); ?></a> <small class="text-muted time"><i class="icon-clock"></i> <?php echo e($post->created_at->diffForHumans()); ?></small> </div> <div class="text-ellipsis"> <small class="text-muted"> <?php echo e($post->user->username); ?> </small> <?php if(isset($post->user->role)): ?> <i class="icon-patch-check-fill text-primary verficon" title="<?php echo app('translator')->get('messages.new.verified'); ?>"></i> <?php endif; ?> <?php if(count($post->tags)): ?> <?php $__currentLoopData = $post->tags; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <small class="text-muted time"><a href="<?php echo e(url('/category/' . $tag->name)); ?>"> #<?php echo e($tag->name); ?> </a></small> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> </div> </div> <h1><?php echo e($post->post_title); ?></h1> <?php if(!empty($post->post_desc)): ?> <p> <?php echo e($post->post_desc); ?> </p> <?php endif; ?> <?php if(!empty($setting->post_ads)): ?> <p> <?php echo $setting->post_ads; ?> </p> <?php endif; ?> <?php if($post->contents): ?> <?php $__currentLoopData = $post->contents; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $content): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($content->type == "header"): ?> <?php if(!empty($content->extra)): ?> <<?php echo e($content->extra); ?>><?php echo e($content->body); ?></<?php echo e($content->extra); ?>> <?php else: ?> <h4><?php echo e($content->body); ?></h4> <?php endif; ?> <?php endif; ?> <?php if($content->type == "text"): ?> <p><?php echo e($content->body); ?></p> <?php endif; ?> <?php if($content->type == "txteditor"): ?> <?php echo clean( $content->body ); ?> <?php endif; ?> <?php if($content->type == "image"): ?> <?php if(!empty($content->link)): ?> <a href="<?php echo e($content->link); ?>" target="<?php echo e($content->blank == '0' ? '_self' : '_blank'); ?>"> <img class="img-fluid border-one mb-3" src="<?php echo e(url('/uploads/' . $content->body)); ?>" alt="<?php echo e($content->extra); ?>"> </a> <?php else: ?> <img class="img-fluid border-one mb-3" src="<?php echo e(url('/uploads/' . $content->body)); ?>" alt="<?php echo e($content->extra); ?>"> <?php endif; ?> <?php endif; ?> <?php if($content->type == "youtube"): ?> <div class="ratio border-youtube-all ratio-16x9 mb-3 mb-3"> <iframe src="https://www.youtube.com/embed/<?php echo e($content->body); ?>" allowfullscreen></iframe> </div> <?php endif; ?> <?php if($content->type == "tweet"): ?> <div class="embedbox mx-auto mb-3"> <?php echo $content->embed->embedcode; ?> </div> <?php endif; ?> <?php if($content->type == "facebook"): ?> <div class="embedbox mx-auto mb-3"> <div class="fb-post" data-href="<?php echo e($content->embed->url); ?>" data-width="auto"></div> </div> <?php endif; ?> <?php if($content->type == "instagram"): ?> <div class="embedbox mx-auto mb-3"> <?php echo $content->embed->embedcode; ?> </div> <?php endif; ?> <?php if($content->type == "pinterest"): ?> <div class="embedbox mx-auto mb-3"> <a data-pin-do="embedPin" data-pin-width="medium" href="<?php echo e($content->embed->url); ?>"></a> </div> <?php endif; ?> <?php if($content->type == "tiktok"): ?> <div class="embedbox-tiktok mx-auto mb-3"> <?php echo $content->embed->embedcode; ?> </div> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> <div class="card-body card-border"> <div class="row"> <div class="d-flex align-items-center"> <div class="d-flex align-items-center ps-2 pe-2 me-4"> <?php if(auth()->check()): ?> <?php if($post->isLiked): ?> <div class="heart heartliked" onclick="ClickHeart(this)" id="heart<?php echo e($post->id); ?>"></div> <?php else: ?> <div class="heart" onclick="ClickHeart(this)" id="heart<?php echo e($post->id); ?>"></div> <?php endif; ?> <?php else: ?> <a class="d-flex align-items-center" href="<?php echo e(url('/login/')); ?>" > <span class="heartguest"></span> </a> <?php endif; ?> <div class="likenumber" id="likeCount<?php echo e($post->id); ?>"><?php echo e(shortNumber($post->likes()->count())); ?></div> </div> <div class="ps-2 pe-2"> <span class="text-muted"><i class="icon-eye me-2"></i> <?php echo e(shortNumber($post->counter)); ?></span> </div> <div class="ms-auto"> <ul class="profile-links-list d-flex justify-content-center"> <li class="nowrap"> <a class="btn btn-white-shadow" data-pin-do="buttonBookmark" data-pin-custom="true" href="https://www.pinterest.com/pin/create/button/"> <i class="icon-pinterest"></i></a> </li> <li class="nowrap"> <a class="btn btn-white-shadow" role="button" onclick="shareButton(this)" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo e(url('/posts/' . $post->post_slug)); ?>" target="_blank"> <i class="icon-facebook"></i></a> </li> <li class="nowrap"> <a class="btn btn-white-shadow" role="button" onclick="shareButton(this)" href="https://twitter.com/share?url=<?php echo e(url('/posts/' . $post->post_slug)); ?>" target="_blank"> <i class="icon-twitter"></i></a> </li> </ul> </div> </div> </div> </div> <?php if($setting->allow_comments == '0'): ?> <div class="card-footer"> <?php if(auth()->check()): ?> <form method="POST" action="<?php echo e(url('/comments')); ?>" id="comment_form"> <input type="hidden" name="post_id" value="<?php echo e($post->id); ?>" /> <textarea id="com-area" name="body" class="form-control mb-3" placeholder="Write a comment..." rows="3"></textarea> <div class="d-grid gap-2 d-md-flex justify-content-md-end mb-3"> <div id="show-com-msg" class="align-self-center d-none"></div> <button id="postcomment" onclick="SubmitComment()" class="btn btn-primary btn-sm border-one" type="button"><?php echo app('translator')->get('messages.comments.postcomment'); ?></button> </div> </form> <?php else: ?> <p class="text-center"><a class="btn btn-sm btn-arrow border-one mt-2" role="button" href="<?php echo e(url('/login/')); ?>" > <span class="m-2"><i class="icon-chat-dots"></i> <?php echo app('translator')->get('messages.comments.logincomment'); ?> </span></a></p> <?php endif; ?> <h6 class="pb-3 mb-2"><?php echo app('translator')->get('messages.comments.comments'); ?> <span id="comcount" class="badge bg-secondary"><?php echo e(($post->allcomments->count())); ?></span> </h6> <div id="dynamic_com"> <?php if($post->comments): ?> <?php $__currentLoopData = $post->comments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $comments): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="maincom"> <div class="d-flex pt-3"> <?php if(substr( $comments->user->avatar, 0, 4 ) === "http"): ?> <img class="flex-shrink-0 me-3 avatar img-fluid rounded-circle" src="<?php echo e($comments->user->avatar); ?>" alt="<?php echo e($comments->user->username); ?>"> <?php else: ?> <img class="flex-shrink-0 me-3 avatar img-fluid rounded-circle" src="<?php echo e(url('/images/' . $comments->user->avatar)); ?>" alt="<?php echo e($comments->user->username); ?>"> <?php endif; ?> <p class="pb-3 mb-0 small lh-sm border-comment w-100"> <input type="hidden" class="comment_id own_id" value="<?php echo e($comments->id); ?>" /> <span class="d-block mb-2"> <strong> <a href="<?php echo e(url('/profile/' .$comments->user->username)); ?>"><?php echo e(str_limit($comments->user->name, 10)); ?></a> </strong> <span class="usrname text-muted"><?php echo e("@" . $comments->user->username); ?></span> <small class="text-muted time"><?php echo e($comments->created_at->diffForHumans()); ?> </small> </span> <span class="combody"> <?php echo clean( $comments->body ); ?> </span> <?php if(auth()->guard()->check()): ?> <span class="d-block mt-2"> <a class="link-secondary me-3" onclick="ReplyComment(this)" href="#"><?php echo app('translator')->get('messages.comments.reply'); ?></a><?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['own-comment', 'moderator-post'], $comments)): ?> <a class="link-secondary me-3" onclick="EditComment(this)" href="#"><?php echo app('translator')->get('messages.edit'); ?></a> <a class="link-secondary" onclick="DeleteComment(this)" href="#"><?php echo app('translator')->get('messages.delete'); ?></a> <?php endif; ?> </span> <?php endif; ?> <span class="d-block mt-2 editcomment d-none"> </span> </p> </div> <?php $__currentLoopData = $comments->replies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $comments): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="d-flex pt-3 ps-5"> <?php if(substr( $comments->user->avatar, 0, 4 ) === "http"): ?> <img class="flex-shrink-0 me-3 avatar-sm img-fluid rounded-circle" src="<?php echo e($comments->user->avatar); ?>" alt="<?php echo e($comments->user->username); ?>"> <?php else: ?> <img class="flex-shrink-0 me-3 avatar-sm img-fluid rounded-circle" src="<?php echo e(url('/images/' . $comments->user->avatar)); ?>" alt="<?php echo e($comments->user->username); ?>"> <?php endif; ?> <p class="pb-3 mb-0 small lh-sm border-comment w-100"> <input type="hidden" class="comment_id" value="<?php echo e($comments->parent_id); ?>" /> <input type="hidden" class="own_id" value="<?php echo e($comments->id); ?>" /> <span class="d-block mb-2"> <strong> <a href="<?php echo e(url('/profile/' .$comments->user->username)); ?>"><?php echo e(str_limit($comments->user->name, 10)); ?></a> </strong> <span class="usrname text-muted"><?php echo e("@" . $comments->user->username); ?></span> <small class="text-muted time"><?php echo e($comments->created_at->diffForHumans()); ?> </small> </span> <span class="combody"> <?php echo clean( $comments->body ); ?> </span> <?php if(auth()->guard()->check()): ?> <span class="d-block mt-2"> <a class="link-secondary me-3" onclick="ReplyComment(this)" href="#"><?php echo app('translator')->get('messages.comments.reply'); ?></a> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['own-comment', 'moderator-post'], $comments)): ?> <a class="link-secondary me-3" onclick="EditComment(this)" href="#"><?php echo app('translator')->get('messages.edit'); ?></a> <a class="link-secondary" onclick="DeleteComment(this)" href="#"><?php echo app('translator')->get('messages.delete'); ?></a> <?php endif; ?> </span> <?php endif; ?> <span class="d-block mt-2 editcomment d-none"> </span> </p> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> </div> <?php endif; ?> </div> </div> <div class="col-md-4"> <div class="row mb-5"> <div class="col"> <?php if($previous): ?> <a role="button" class="btn w-100 btn-arrow border-one" href="<?php echo e(url('/posts/' . $previous)); ?>" data-bs-toggle="tooltip" data-bs-placement="bottom" title="<?php echo app('translator')->get('messages.previous'); ?>"> <i class="icon-arrow-left"></i> </a> <?php endif; ?> </div> <div class="col"> <?php if($random): ?> <a role="button" class="btn w-100 btn-arrow border-one" href="<?php echo e(url('/posts/' . $random)); ?>" data-bs-toggle="tooltip" data-bs-placement="bottom" title="<?php echo app('translator')->get('messages.random'); ?>"> <i class="icon-shuffle"></i> </a> <?php endif; ?> </div> <div class="col"> <?php if($next): ?> <a role="button" class="btn w-100 btn-arrow border-one" href="<?php echo e(url('/posts/' . $next)); ?>" data-bs-toggle="tooltip" data-bs-placement="bottom" title="<?php echo app('translator')->get('messages.next'); ?>"> <i class="icon-arrow-right"></i> </a> <?php endif; ?> </div> </div> <?php if(!empty($setting->page_ads)): ?> <div class="card border-one embed-responsive mb-3"> <?php echo $setting->page_ads; ?> </div> <?php endif; ?> <?php $__empty_1 = true; $__currentLoopData = $related; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $relatedpost): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <?php echo $__env->make('public.relatedpost', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <h6 class="text-light text-center"><?php echo app('translator')->get('messages.norelated'); ?></h6> <?php endif; ?> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('extra'); ?> <footer class="blog-footer"> <?php if(count($pages) > 0): ?> <ul class="list-inline"> <?php $__currentLoopData = $pages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li class="list-inline-item"> <a class="text-mode" href="<?php echo e(url('/page/' . $page->page_slug)); ?>"><?php echo e($page->page_title); ?></a> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> <?php endif; ?> <?php if(!empty($setting->footer)): ?> <div class="text-muted"><?php echo clean($setting->footer); ?></div> <?php endif; ?> </footer> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.mastershow', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/viralblo/instantblog/resources/views/public/show.blade.php ENDPATH**/ ?>