@extends('cms.application') @section('content')
@if($types->count() == 0)
@else @foreach($types as $title=>$type)
{{$title}} Galleries
@foreach($type as $key => $gallery)
{{ str_limit($gallery->title, 100) }}
@if (count($gallery->photos) > 1 && ($title == 'photos')) @else @endif

@if ($title == 'photos') {{ number_format(count($gallery->photos))}} @else {{ number_format(count($gallery->videos))}} @endif

{{-- --}}

@endforeach
@endforeach @endif
@stop