Mostafijur Rahman 1 năm trước cách đây
mục cha
commit
47a39e6d4d

+ 5 - 0
app/StudentProposal.php

@@ -39,4 +39,9 @@ class StudentProposal extends Model
     {
         return $this->belongsTo(Country::class, 'nationality', 'id');
     } 
+
+    public function publications()
+    {
+        return $this->hasMany('App\Models\Publication', 'student_id','student_id');
+    }
 }

+ 10 - 0
resources/views/supervisor/layouts/top.blade.php

@@ -388,6 +388,16 @@
                 color: #343434;
                 font-size: 1rem;
             }
+            .single_glance_row_publication {
+                background-color: rgb(255 255 255);
+                font-size: 12px !important;
+                margin: 0 !important;
+                border: none; 
+                border-radius: 0;
+                padding: 8px 10px;
+                color: #343434;
+                font-size: 1rem;
+            }
             .config{
                 font-size: 13px;
                 font-weight: 600;

+ 26 - 2
resources/views/supervisor/student_proposal_details.blade.php

@@ -287,15 +287,39 @@
                                         @endif
                                         <span style="font-size: 11px; color: #868e96;"></span>
                                     </div>
-                                    <div class="single_glance_row mt-1" style="display: flex; width: 100%;">
+                                    <div class="single_glance_row_publication mt-1" style="display: flex; width: 100%;">
                                         <span class="title" style="font-size:11px; font-weight: 600;">Do you have any Publication?</span>
-                                        @if($proposal_details->student_details->is_publication ==1)
+                                        @if($proposal_details->student_details->is_publication ==1) 
                                             <span class="label_badge_radius" style="background: #e7f3ea !important; color: #0ba52e; margin-left: 3px; position: absolute !important; right: 23px;">yes</span>
+                                            
                                         @else
                                             <span class="label_badge_radius" style="background: #f1ac93 !important; color: #f80707; margin-left: 3px; position: absolute !important; right: 23px;">no</span>
                                         @endif
                                         <span style="font-size: 11px; color: #868e96;"></span>
                                     </div>
+                                    @if($proposal_details->student_details->is_publication ==1)
+                                    <div class="education_body mt-1">
+                                        <div class="result" style="display: flex;">
+                                            @foreach($proposal_details->publications as $row)
+                                            <div class="result-part" style="font-size: 11px;">
+                                                <span class="single_point">{{$row->publication }}:  
+                                                    <span class="" style="font-weight: 700;background: #e7f3ea !important; color: #0ba52e;">
+                                                        @if($row->status==1)
+                                                          Published
+                                                        @endif
+                                                        @if($row->status==2)
+                                                            Under Review
+                                                        @endif
+                                                        @if($row->status==3)
+                                                            Draft stage
+                                                        @endif
+                                                    </span>
+                                                </span>
+                                            </div> 
+                                            @endforeach
+                                        </div>
+                                    </div>
+                                    @endif
                                 </div>
                             </div>
                         </div>