Silent преди 6 години
родител
ревизия
b82d0d1045
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      app/Models/Student.php
  2. 1 1
      resources/views/admin/students/index.blade.php

+ 1 - 1
app/Models/Student.php

xqd
@@ -32,7 +32,7 @@ class Student extends Model
 
     public function getBindPhone()
     {
-        return $this['bind_phone'] == 2 ? '绑定' : '未绑定';
+        return $this['bind_phone'] == 2 ? '绑定' : '未绑定';
     }
 
     public function getMarry($key = null)

+ 1 - 1
resources/views/admin/students/index.blade.php

xqd
@@ -62,7 +62,7 @@
                                             <td>{{ $item->apply_date }}</td>
                                             <td>{{ $item->end_date }}</td>
                                             <td>{{ $item->teacher_names }}</td>
-                                            <td>{{ $item->remark }}</td>
+                                            <td>{!! $item->remark !!}</td>
                                             <td>
                                                 <div class="btn-group">
                                                     <a class="btn btn-sm btn-success btn-courses" href="{{ $pre_uri . 'Course/index?student_id=' . $item->id }}">课程</a>