@extends('layouts.adminlte') @section('bodyClass', 'hold-transition skin-blue sidebar-aside') @section('content')
@foreach($data as $item) @endforeach
Photo Title Description Author Editor Category Tags Time
{{$item->title}} {{$item->description}} @if($item->getAuthor) {{$item->getAuthor->name}} @endif @if($item->getEditor) {{$item->getEditor->name}} @endif {{--{{$item->category?$item->category->category_name:''}}--}} @if($item->category) {{$item->category->category_name}} @endif @if($item->tags) @foreach($item->tags as $tag) {{$tag->tag_name}} @endforeach @endif @if($item->publish_date) Published at: {{date_format(date_create($item->publish_date),setting('date_formats'))}}
@endif @if($item->created_at) Created at: {{$item->created_at->format(setting('date_formats'))}} @endif

{{ $data->links()}}
@stop @push('scripts') @endpush