@extends('admin.main')
@section('content')
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
    <h1>
        Overlay Pattern
        <!-- <small>Optional description</small> -->
    </h1>
    <ol class="breadcrumb">
        <li><a href="{{ url ('admin') }}"><i class="fa fa-dashboard"></i> Dashboard</a></li>
        <li class="active"> Overlay Pattern</li>
    </ol>
    </section>

    <!-- Main content -->
    <section class="content container-fluid">
        <div class="row">
            <div class="col-md-12">
                <div class="box">
                    <div class="box-header with-border">
                        <h4 class="box-title">Overlay Pattern</h4>
                    </div>
                    <div class="box-body">
                        @if(count($pattern_array) > 0)
                            @foreach ($pattern_array as $pattern)
                                <div class="item col-xs-12 col-sm-6 col-lg-3">
                                    <div class="thumbnail" style="padding: 5px;">
                                        <div class="store-logo">
                                            <a href="{{ minio_url('uploads/images/' . $pattern->PatternThumbnail) }}"  data-toggle="lightbox">
                                                <img class="img_store_logo_img"  id="img_store_banner" src="{{ minio_url('uploads/images/' . $pattern->PatternThumbnail) }}" style="max-width: 100%; max-height: 100%; ">
                                            </a>
                                        </div>
                                        <div class="caption">
                                            <h4 class="group inner list-group-item-heading" style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
                                                {{ $pattern->PatternName }}
                                            </h4>
                                            <p class="group inner list-group-item-text">
                                                <hr>
                                            </p>
                                            <div class="row">
                                                <div class="col-xs-12 col-md-12">
                                                    <a href="{{ url('admin') . '/overlay-pattern/view/' . $pattern->Id }}" class="btn btn-success btn-block">View / Edit</a>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            @endforeach
                        @else
                            <div class="col-sm-12">
                                <h3 style="color: #b5b5b5;">No Record Found</h3>
                            </div>
                        @endif
                    </div>
                    <div class="box-footer">
                    </div>
                </div><!-- box  -->
            </div>
        </div>
    </section>
    <!-- /.content -->
</div>
@endsection