Commit 4df04df2e9fde2ece488cb0d2ecb9a18fc653734

Authored by Андрей Ларионов
1 parent 96681864ee

Обрезание слов у образования - strsub

Showing 2 changed files with 7 additions and 4 deletions Side-by-side Diff

resources/views/admin/education/form.blade.php
... ... @@ -99,10 +99,11 @@
99 99 >Добавить специализацию</a><br>
100 100 @if ((isset($program1)) && ($program1->count()))
101 101 @foreach ($program1 as $prog1)
  102 + <hr>
102 103 <label class="block text-sm">
103 104 <h4 class="mb-4 text-lg font-semibold text-gray-600 dark:text-gray-300">Специальность: {{$prog1->name}}</h4>
104 105 <span class="text-gray-700 dark:text-gray-400">Описание: {{$prog1->text}}</span>
105   - </label><br><hr>
  106 + </label><br>
106 107 @endforeach
107 108 @else
108 109 <span class="text-gray-700 dark:text-gray-400">Нет записей</span>
... ... @@ -114,10 +115,11 @@
114 115 >Добавить специализацию</a><br>
115 116 @if ((isset($program2)) && ($program2->count()))
116 117 @foreach ($program2 as $prog2)
  118 + <hr>
117 119 <label class="block text-sm">
118 120 <h4 class="mb-4 text-lg font-semibold text-gray-600 dark:text-gray-300">Специальность: {{$prog2->name}}</h4>
119 121 <span class="text-gray-700 dark:text-gray-400">Описание: {{$prog2->text}}</span>
120   - </label><br><hr>
  122 + </label><br>
121 123 @endforeach
122 124 @else
123 125 <span class="text-gray-700 dark:text-gray-400">Нет записей</span>
... ... @@ -129,10 +131,11 @@
129 131 >Добавить специализацию</a><br>
130 132 @if ((isset($program3)) && ($program3->count()))
131 133 @foreach ($program3 as $prog3)
  134 + <hr>
132 135 <label class="block text-sm">
133 136 <h4 class="mb-4 text-lg font-semibold text-gray-600 dark:text-gray-300">Специальность: {{$prog3->name}}</h4>
134 137 <span class="text-gray-700 dark:text-gray-400">Описание: {{$prog3->text}}</span>
135   - </label><br><hr>
  138 + </label><br>
136 139 @endforeach
137 140 @else
138 141 <span class="text-gray-700 dark:text-gray-400">Нет записей</span>
resources/views/admin/education/index.blade.php
... ... @@ -35,7 +35,7 @@
35 35 {{$cat->id}}
36 36 </td>
37 37 <td class="px-4 py-3">
38   - {{mb_strimwidth($cat->name, 0, 65, "...")}}
  38 + {{ substr($cat->name, 0, 65)}}
39 39 </td>
40 40  
41 41 <td class="px-4 py-3 text-sm_">