@extends('themes.base.layout') @section('title', 'Gallery Admin') @section('breadcrumb') @endsection @section('content')

@lang('admin.list_albums_title')

@lang('admin.list_albums_intro')
@if (count($albums) == 0)

@lang('admin.no_albums_title')

@lang('admin.no_albums_text')

@lang('admin.create_album')

@else @foreach ($albums as $album) @endforeach
@can('edit', $album) {{ $album->name }} @endcan @cannot('edit', $album) {{ $album->name }} @endcannot

{{ $album->description }}

{{ $album->photos_count }} {{ trans_choice('admin.stats_widget.photos', $album->photos_count) }}

@can('edit', $album) @lang('forms.edit_action') @endcan @can('delete', $album) @lang('forms.delete_action') @endcan
{{ $albums->links() }}
@endif
@endsection