1
0
Files
lkafu/storage/framework/views/889a7252877f8a140528f59d2f5770140a12f515.php
2020-08-06 14:52:58 +08:00

75 lines
4.1 KiB
PHP

<?php $__env->startSection('footer',''); ?>
<?php $__env->startSection('css'); ?>
<style type="text/css">
body{
background: #fff;
}
</style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="search searchClassify">
<div class="indexLogo" data-href="<?php echo e(route('index'), false); ?>">
<img src="/assets/index/img/logo.png">
</div>
<form action="<?php echo e(route('goods.lists'), false); ?>" method="get" accept-charset="utf-8" class="searchCont" style="width: calc(100% - 40px)">
<input type="search" name="title" class="input" placeholder="请输入关键字">
<button type="submit" class="btn"><i class="icon-search"></i></button>
</form>
</div>
<!-- section -->
<section>
<!-- 产品分类 -->
<ul class="classifyItem">
<li class="classifyItem-nav <?php if(!$category): ?> classifyItem-active <?php endif; ?> " data-href="<?php echo e(route('goods.category',['category_id'=>'']), false); ?>"><span>全部</span></li>
<?php $__currentLoopData = $categorys; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cate): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li class="classifyItem-nav <?php if($category && $category->id==$cate->id): ?> classifyItem-active <?php endif; ?> " data-href="<?php echo e(route('goods.category',['category_id'=>$cate->id]), false); ?>"><span><?php echo e($cate->title, false); ?></span></li>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
<div class="classifyCont">
<div class="classifyBorder">
<?php if($category): ?>
<div class="classifyCont-title">
<span><?php echo e($category->title, false); ?></span>
</div>
<ul class="classifyUl">
<?php $__currentLoopData = $category->children; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $children): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li data-href="<?php echo e(route('goods.lists',['category_id'=>$children->id]), false); ?>">
<div class="classifyUl-img">
<img src="<?php echo e($children->cover_path, false); ?>" />
</div>
<div class="classifyUl-text">
<?php echo e($children->title, false); ?>
</div>
</li>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
<?php else: ?>
<?php $__currentLoopData = $categorys; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="classifyCont-title">
<span><?php echo e($category->title, false); ?></span>
</div>
<ul class="classifyUl">
<?php $__currentLoopData = $category->children; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $children): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li data-href="<?php echo e(route('goods.lists',['category_id'=>$children->id]), false); ?>">
<div class="classifyUl-img">
<img src="<?php echo e($children->cover_path, false); ?>" />
</div>
<div class="classifyUl-text">
<?php echo e($children->title, false); ?>
</div>
</li>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</div>
</div>
</section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/wwwroot/lkafu/resources/views/goods/category.blade.php ENDPATH**/ ?>