2017-04-17 17:11:59 +01:00
|
|
|
<tr data-album-id="{{ $album->id }}" class="{{ $is_child ? 'hidden' : '' }}" @if (!is_null($album->parent_album_id)) data-parent-album-id="{{ $album->parent_album_id }}" @endif>
|
|
|
|
<td style="width: 20px;">
|
2017-09-29 13:57:45 +01:00
|
|
|
@if (count($album->child_albums) > 0)
|
2017-04-17 17:11:59 +01:00
|
|
|
<i class="album-expand-handle fa fa-fw fa-plus mt-2"></i>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span style="font-size: 1.3em;">
|
|
|
|
@can('edit', $album)
|
|
|
|
<a href="{{ route('albums.show', ['id' => $album->id]) }}">{{ $album->name }}</a>
|
|
|
|
@endcan
|
|
|
|
@cannot('edit', $album)
|
|
|
|
{{ $album->name }} <i class="fa fa-fw fa-lock"></i>
|
|
|
|
@endcannot
|
|
|
|
</span><br/>
|
|
|
|
<p>{{ $album->description }}</p>
|
2017-09-29 13:57:45 +01:00
|
|
|
<p style="margin-bottom: 0;">
|
|
|
|
<b>{{ $album->photos_count }}</b> {{ trans_choice('admin.stats_widget.photos', $album->photos_count) }}
|
|
|
|
@if (count($album->child_albums) > 0)
|
|
|
|
· <b>{{ count($album->child_albums) }}</b> {{ trans_choice('admin.stats_widget.albums', count($album->child_albums)) }}
|
|
|
|
@endif
|
|
|
|
</p>
|
2017-04-17 17:11:59 +01:00
|
|
|
</td>
|
|
|
|
<td class="text-right">
|
|
|
|
<div class="btn-group">
|
|
|
|
@can('edit', $album)
|
|
|
|
<a href="{{ route('albums.edit', ['id' => $album->id]) }}" class="btn btn-secondary">@lang('forms.edit_action')</a>
|
|
|
|
@endcan
|
|
|
|
@can('delete', $album)
|
|
|
|
<a href="{{ route('albums.delete', ['id' => $album->id]) }}" class="btn btn-danger">@lang('forms.delete_action')</a>
|
|
|
|
@endcan
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2017-09-29 13:57:45 +01:00
|
|
|
@foreach ($album->child_albums as $album)
|
2017-04-17 17:11:59 +01:00
|
|
|
@include (Theme::viewName('partials.single_album_admin'), ['is_child' => true])
|
|
|
|
@endforeach
|