View file resources/views/boards/active.blade.php

File size: 2.91Kb
  1. @extends('layout')
  2.  
  3. @section('title', __('boards.my_items'))
  4.  
  5. @section('header')
  6. <h1>{{ __('boards.my_items') }} <small>({{ __('index.boards') }}: {{ $items->total() }})</small></h1>
  7. @stop
  8.  
  9. @section('breadcrumb')
  10. <nav>
  11. <ol class="breadcrumb">
  12. <li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
  13. <li class="breadcrumb-item"><a href="/boards">{{ __('index.boards') }}</a></li>
  14. <li class="breadcrumb-item active">{{ __('boards.my_items') }}</li>
  15. </ol>
  16. </nav>
  17. @stop
  18.  
  19. @section('content')
  20. @if ($items->isNotEmpty())
  21. @foreach ($items as $item)
  22. <div class="row mb-3">
  23. <div class="col-md-12">
  24. <div class="card">
  25. <div class="card-body">
  26. <div class="row">
  27. <div class="col-md-3">
  28. <a href="/items/{{ $item->id }}">{!! $item->getFirstImage() !!}</a>
  29. </div>
  30. <div class="col-md-7">
  31. <h5><a href="/items/{{ $item->id }}">{{ $item->title }}</a></h5>
  32. <small><i class="fas fa-angle-right"></i> <a href="/boards/{{ $item->category->id }}">{{ $item->category->name }}</a></small>
  33. <div class="section-message mb-3">
  34. {!! $item->shortText() !!}
  35. </div>
  36. <div>
  37. <i class="fa fa-user-circle"></i> {!! $item->user->getProfile() !!}
  38. <small class="section-date text-muted font-italic">{{ dateFixed($item->created_at) }}</small>
  39. <br>
  40.  
  41. @if ($item->expires_at > SITETIME)
  42. <i class="fas fa-clock"></i> {{ __('boards.expires_in') }} {{ formatTime($item->expires_at - SITETIME) }}
  43. @else
  44. <span class="badge badge-danger">{{ __('boards.item_not_active') }}</span>
  45. @endif
  46. </div>
  47. </div>
  48.  
  49. <div class="col-md-2">
  50. @if ($item->price)
  51. <button type="button" class="btn btn-info">{{ $item->price }} {{ setting('currency') }}</button>
  52. @endif
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. @endforeach
  60. @else
  61. {!! showError(__('boards.empty_items')) !!}
  62. @endif
  63.  
  64. {{ $items->links() }}
  65. @stop