Self-hosted PHP photo gallery - your photos, your website, your property! Built on Laravel and Bootstrap 4, Blue Twilight is a private alternative to Flickr and Instagram. https://showmy.photos
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
2.0KB

  1. @extends('themes.base.layout')
  2. @section('title', 'Welcome')
  3. @section('content')
  4. <div class="container-fluid">
  5. <div class="row">
  6. <div class="col-xl-8 ml-xl-auto mr-xl-auto">
  7. @if (count($albums) > 0)
  8. <div class="row album-photo-cards">
  9. @foreach ($albums as $album)
  10. <div class="col-sm-6 col-md-4">
  11. <div class="card">
  12. <img class="card-img-top" src="{{ $album->thumbnailUrl('preview') }}"/>
  13. <div class="card-block">
  14. <h4 class="card-title"><a href="{{ $album->url() }}">{{ $album->name }}</a></h4>
  15. <p class="card-text">{{ $album->description }}</p>
  16. </div>
  17. <div class="card-footer">
  18. <small class="text-muted"><i class="fa fa-fw fa-photo"></i> {{ $album->photos_count }} photos</small>
  19. </div>
  20. </div>
  21. </div>
  22. @endforeach
  23. </div>
  24. <div class="row" style="margin-top: 15px;">
  25. <div class="col text-center">
  26. {{ $albums->links() }}
  27. </div>
  28. </div>
  29. @else
  30. <div class="text-center">
  31. <h1>@lang('gallery.index_no_results_heading')</h1>
  32. <p style="margin-bottom: 30px; line-height: 2em;">@lang('gallery.index_no_results_text', ['admin_link' => sprintf('<a href="%s">%s</a>', route('admin'), trans('admin.title'))])</p>
  33. <img src="{{ asset('themes/base/images/take-a-photo.jpg') }}" class="img-fluid rounded" style="display: inline;" />
  34. </div>
  35. @endif
  36. </div>
  37. </div>
  38. </div>
  39. @endsection