index.blade.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <x-app-layout>
  2. <div class="py-12">
  3. <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
  4. <div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
  5. <div class="p-6 text-gray-900">
  6. <h1 class="text-xl font-medium">Мои заявки</h1>
  7. @if (session('success'))
  8. <span class="btn btn-success mt-4 mb-4">{{session('success')}}</span>
  9. @endif
  10. <table class="w-full text-center mt-4">
  11. <thead>
  12. <tr>
  13. <th>
  14. </th>
  15. <th>
  16. Курс
  17. </th>
  18. <th>
  19. Дата начала обучения
  20. </th>
  21. <th>
  22. Способ оплаты
  23. </th>
  24. <th>
  25. Статус
  26. </th>
  27. </tr>
  28. <tr style="height: 15px;"></tr>
  29. </thead>
  30. <tbody>
  31. @foreach ($applications as $app)
  32. <tr style="height: 50px; border-block: 1px solid #6b7280;">
  33. <td>{{$app->id}}</td>
  34. <td>{{$app->course->name}}</td>
  35. <td>{{$app->date_start}}</td>
  36. <td>{{$app->payment_method}}</td>
  37. <td>{{$app->status}}</td>
  38. @if ($app->status === 'Обучение завершено')
  39. <td>
  40. <x-primary-button>Отзыв</x-primary-button>
  41. <form method="" action="">
  42. @csrf
  43. </form>
  44. </td>
  45. @endif
  46. </tr>
  47. @endforeach
  48. </tbody>
  49. </table>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </x-app-layout>