@extends('frontend.layouts.master') @section('title', 'Photos') @section('content') @php $header_image = \App\Models\Site\Header\Image::inRandomOrder()->first(); @endphp

Photos

Share your photos with our community.

Photo Categories

@foreach($categories->sortBy('sort_order') as $category) @if( $category->photos->where('status_id', 1)->count() == 0 ) @else @endif @endforeach
{{ $category->name }}
{{ $category->description }}
{{ $category->photos->where('status_id', 1)->count() }}
Photos
No Photos @foreach($category->photos->where('status_id', 1)->sortByDesc('created_at')->take(1) as $photo) {{ str_limit($photo->title, 20) }}
{{ $photo->created_at->diffForHumans() }}
@endforeach

Recent Photos

@if($photos->count() == 0)

There are no photos in this category yet.
To share your photos please click on upload photo in the right hand navigation.

@else
@foreach($photos as $photo) @include('frontend.photo.partials.thumbnail') @endforeach
{{ $photos->links('frontend.layouts.partials.pagination') }} @endif
@include('frontend.photo.partials.sidebar')
@endsection