Просмотр файла resources/views/admin/offers/view.blade.php

Размер файла: 2.74Kb
  1. @extends('layout')
  2.  
  3. @section('title', $offer->title)
  4.  
  5. @section('header')
  6. <div class="float-end">
  7. <a class="btn btn-light" href="/offers/{{ $offer->id }}"><i class="fas fa-wrench"></i></a>
  8. </div>
  9.  
  10. <h1>{{ $offer->title }}</h1>
  11. @stop
  12.  
  13. @section('breadcrumb')
  14. <nav>
  15. <ol class="breadcrumb">
  16. <li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
  17. <li class="breadcrumb-item"><a href="/admin">{{ __('index.panel') }}</a></li>
  18. <li class="breadcrumb-item"><a href="/admin/offers/{{ $offer->type }}">{{ __('index.offers') }}</a></li>
  19. <li class="breadcrumb-item active">{{ $offer->title }}</li>
  20. </ol>
  21. </nav>
  22. @stop
  23.  
  24. @section('content')
  25. <div class="mb-3">
  26. <div class="section-content">
  27. <div class="float-end">
  28. <a href="/admin/offers/reply/{{ $offer->id }}" data-bs-toggle="tooltip" title="{{ __('main.reply') }}"><i class="fas fa-reply text-muted"></i></a>
  29. <a href="/admin/offers/edit/{{ $offer->id }}" data-bs-toggle="tooltip" title="{{ __('main.edit') }}"><i class="fas fa-pencil-alt text-muted"></i></a>
  30. <a href="/admin/offers/delete?del={{ $offer->id }}&amp;token={{ $_SESSION['token'] }}" onclick="return confirm('{{ __('offers.confirm_delete') }}')" data-bs-toggle="tooltip" title="{{ __('main.delete') }}"><i class="fas fa-times text-muted"></i></a>
  31. </div>
  32.  
  33. <div class="section-message">
  34. {{ bbCode($offer->text) }}
  35. </div>
  36. </div>
  37.  
  38. <div class="section-body">
  39. {{ __('main.added') }}: {{ $offer->user->getProfile() }}
  40. <small class="section-date text-muted fst-italic">{{ dateFixed($offer->created_at) }}</small>
  41.  
  42. <div class="my-3">
  43. {{ $offer->getStatus() }}
  44. </div>
  45.  
  46. <div class="js-rating">
  47. {{ __('main.rating') }}:
  48. <b>{{ formatNum($offer->rating) }}</b><br>
  49. </div>
  50.  
  51. <a href="/offers/comments/{{ $offer->id }}">{{ __('main.comments') }}</a> ({{ $offer->count_comments }})
  52. <a href="/offers/end/{{ $offer->id }}">&raquo;</a><br>
  53.  
  54. @if ($offer->closed)
  55. <span class="text-danger">{{ __('main.closed_comments') }}</span>
  56. @endif
  57. </div>
  58. </div>
  59.  
  60. @if ($offer->reply)
  61. <div class="section mb-3 shadow">
  62. <h5>{{ __('offers.official_response') }}</h5>
  63. <div class="section-message">
  64. {{ bbCode($offer->reply) }}<br>
  65. {{ $offer->replyUser->getProfile() }}
  66. <small class="section-date text-muted fst-italic">{{ dateFixed($offer->updated_at) }}</small>
  67. </div>
  68. </div>
  69. @endif
  70. @stop