public static function gallery($id, $thumbnail = array(100, 100), $fullsize = array(500, 350))
 {
     $gallery = array();
     $thumbnails = Property::photos($id, $thumbnail);
     $fullsizes = Property::photos($id, $fullsize);
     foreach ($thumbnails as $k => $v) {
         $gallery[] = array('thumbnail' => $thumbnails[$k], 'fullsize' => $fullsizes[$k]);
     }
     return $gallery;
 }
                @endif
                <div class="row">
                    <div class="col-lg-12">
                        <button id="image-gallery-button" type="button" class="btn btn-primary btn-lg pull-right"  data-toggle="modal" data-target="#myModal">
                            <i class="glyphicon glyphicon-picture"></i>
                            Upload Photos
                        </button>
                        <a id="image-gallery-button" class="btn btn-danger btn-lg pull-left" href="{{ URL::to('admin/properties') }}">
                            <i class="glyphicon glyphicon-home"></i>
                            Back To Properties
                        </a>
                        <br>
                    </div>
                    <div class="clearfix" style="margin-bottom:15px;"></div>
                    <?php 
$photos = Property::photos($property_id, array(400, 350));
?>
                    @if(!empty($photos))
                        @foreach($photos as $photo)
                            <div class="col-lg-2 col-md-4 col-xs-6 thumb">
                                <a class="thumbnail delete-photo" href="#" data-file="{{ preg_replace('/&(.*)/','',basename($photo)) }}" data-property="{{ $property_id }}"><img class="img-responsive" src="{{ $photo }}"></a>
                            </div>
                        @endforeach
                    @else
                        <div class="col-lg-12" style="text-align: center"><h3>No Photos</h3></div>
                    @endif
                </div>
            </div>
        </div>
    </div>
</div>