<div class="album">
    <a data-ajaxify="true" href="{{$album->user->present()->url('album/'.$album->slug)}}" class="default-photo">
        <img src="{{$album->defaultPhoto()}}"/>
    </a>
    <div class="info">
        <h3>{{Str::limit($album->title, 40)}}</h3>
        <i class="icon ion-ios7-photos-outline"></i> {{$album->countPhotos()}} {{trans('photo.photos')}}

        @if ( (Auth::check() and $album->user->id == \Auth::user()->id) or (\Auth::check() and \Auth::user()->isAdmin()))
            | <a href="{{URL::route('delete-album', ['id' => $album->id])}}">{{trans('global.delete')}}</a>
        @endif
    </div>

</div>