<div class="row session">
@foreach ($items as $value)
    <div class="col-xs-12 col-sm-6">
        <div class="article">
            <a href="{{route('item.detail', Crypt::encrypt($value->id)) }}">
                <div class="thum">
                     @php
                        $img = explode('||', $value->item_img);
                    @endphp
                   <img src="{{ asset('assets/images/resize/525x300/'.$img[0]) }}" alt="">
                    <div class="price">
                        <p>$ {{ number_format($value->item_price, 2) }}</p>
                    </div>
                </div>
                <div class="description">
                    <!-- <small>House for rent</small> -->
                    <h3> <i class="fa fa-calendar" aria-hidden="true"></i> {{ str_limit( $value->item_title, $limit = 20, $end = '...') }}</h3>
                    <p>{{ date('Y-m-d', strtotime($value->item_posted))}}</p>
                    <div class="boder-bottom"></div>
                    <ul>
                        <li><i class="fa fa-building" aria-hidden="true"></i> {{ $value->item_sq_fp }} sqft</li>
                        <li><i class="fa fa-bed" aria-hidden="true"></i> {{ $value->item_bedroom }}</li>
                        <li><i class="fa fa-home" aria-hidden="true"></i> {{ $value->item_parking }}</li>
                        <li><i class="fa fa-bed" aria-hidden="true"></i> {{ $value->item_bathroom }}</li>
                    </ul>
                </div>
            </a>
        </div>
    </div>
    @endforeach
</div>

<div class="container">
    <div class="row">
        <div class="col-sm-12">
             <div class="col-sm-12">
                <div class="col-sm-12">
                    {!! $items->render() !!}
                </div>
            </div>
        </div>
    </div>
</div>