<?php $count = 0; ?>
@foreach($row->children as $column)
<?php if($count ==4) break; ?>
<div class="col-md-3" style="float: left;">
<a href="{{ route('home.offer.products.cat', ['offer'=>@$offer_id, 'category'=>@$column->id]) }}" class="product-image">
@if(file_exists( public_path().'/backoffice/images/categories/thumbnail/'.@$column->thumbnail->image ) && @$column->thumbnail->image != null)
<img src="{{ asset('/backoffice/images/categories/thumbnail').'/'.@$column->thumbnail->image }}" alt="{{ @$column->name }}" style="border-radius: 50%">
@else
<img src="{{ asset('/website/assets/images/default.jpg')}}" alt="{{ @$column->name }}" style="width: 360px; height: 250px;">
@endif
</a>
<div class="product-details">
<h1 class="text-center product-category mt-3" style=""><a href="{{ route('home.offer.products.cat', ['offer'=>@$offer_id, 'category'=>@$column->id]) }}">{{ $column->name }}</a></h1>
</div>
</div>
<?php $count++; ?>
@endforeach
Subscribe to:
Post Comments (Atom)
Ajax load lage with laravel.
step-1: HTML <div class="row"> <div class="col-lg-12"> <d...
-
<template > <tr v-for="(item, i) in list"> <td :rowspan="item.same_num" ...
-
HTML: @foreach($user-> as $key => $row) <tr class="{{$row->id}}"> ...
-
HTML <select class="form-control" data-selectField="sales_invoices_customer_id" id="sales_invoices_customer_id...
No comments:
Post a Comment