Created
November 21, 2017 08:30
-
-
Save mockiemockiz/166b65b7b03f982bac25f8498c64c77a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
@foreach($patterned as $p) | |
<div class="col-xs-6 col-sm-3 col-lg-3"> | |
<div class="thumbnail product-thumbnail" > | |
<img src="{{ url('images/motif/'.$p->code.'.jpg') }}" @click="showDetail"> <!-- image toggle --> | |
<div class="details-product"> <!-- and then show this div --> | |
<?php | |
$meta = unserialize($p->meta); | |
?> | |
<ul> | |
<li>Nama : | |
@if(isset($meta['name'])) | |
{{ $meta['name'] }} | |
@endif | |
</li> | |
<li> | |
Ukuran:<br> | |
<?php | |
$dataSizes = []; | |
$sizes = ProductHelper::translateSizeCode($p->size); | |
foreach ($sizes as $s) { | |
$dataSizes[] = $s->readable; | |
} | |
echo implode(', ', $dataSizes); | |
?> | |
</li> | |
<li>Jenis : | |
@if(isset($meta['version_count'])) | |
{{ $meta['version_count'] }} Variasi | |
@endif | |
</li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
@endforeach | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment