@extends('common::layouts.master') @section('gallery-aria-expanded') aria-expanded="true" @endsection @section('gallery-show') show @endsection @section('gallery') active @endsection @section('app-intro') active @endsection @section('content')
@if(session('error'))
{{session('error')}}
@endif @if(session('success'))
{{session('success')}}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{!! Form::open(['route'=>'add-album','method' => 'post', 'enctype' => "multipart/form-data"]) !!}

{{ __('add_album') }}


{!! Form::close() !!}

{{__('albums')}}

@if(Sentinel::getUser()->hasAccess(['album_write']) || Sentinel::getUser()->hasAccess(['album_delete'])) @endif @foreach ($albums as $key => $album) @if(Sentinel::getUser()->hasAccess(['album_write']) || Sentinel::getUser()->hasAccess(['album_delete'])) @endif @endforeach
# {{ __('album_name') }} {{ __('language') }} {{ __('tabs') }} {{ __('cover_image') }}{{ __('options') }}
{{ $key+1 }} {{ $album->name }} {{ $album->language }} {{ $album->tabs }}
@if(isFileExist(@$album, $result = @$album->thumbnail)) image @else image @endif

{{ __('showing')}} {{ $albums->firstItem()}} {{ __('to') }} {{ $albums->lastItem()}} of {{ $albums->total()}} {{ __('entries') }}

@section('script') @endsection @endsection