Mostafijur Rahman 1 year ago
parent
commit
6be7457aab

+ 6 - 0
app/Http/Controllers/TeacherHomeController.php

@@ -25,6 +25,12 @@ class TeacherHomeController extends Controller
         return view('teacher_profile',compact('students','user','departments','refer_users','universities'));
     }
 
+    public function teacher_title($id){
+        $user = Auth::guard('teacher')->user();
+        $proposal_details = StudentProposal::find($id);
+        return view('teacher.title',compact('proposal_details'));
+    }
+
     
 
 }

+ 8 - 6
resources/views/title.blade.php → resources/views/teacher/title.blade.php

@@ -815,7 +815,7 @@ element.style {
                                         <div class="right_part_right_whole">
                                             <div class="summary_bordered_box" style="line-height: 20px; width: 50%; height: 130px; margin: 0 15px 0 0;">
                                                 <div class="review-block-title mb-0">
-                                                    <span>Mr B</span>
+                                                    <span>{{cn($proposal_details,'student_details.first_name','')}} {{cn($proposal_details,'student_details.last_name','')}}</span>
                                                     <span>Islam</span>
                                                 </div>
                                                 <label class="label" style="padding: 0; background: #fff;">
@@ -823,23 +823,24 @@ element.style {
                                                          Apply Reference
                                                     </label>
                                                     <label class="label" style="background: #fff; padding: 2px 7px 2px 4px; color: #2e1153; font-weight: 600; border-top-left-radius: 0; border-bottom-left-radius: 0;border: 1px solid #ceccda; position: relative; left: -3px; font-size: 10px;">
-                                                            114673
+                                                        {{cn($proposal_details,'teacher_details.ref_no','')}}
                                                     </label>
                                                 </label>
                                                     <br>
                                                 <span style="font-size:10px;">
                                                     <span style="color: #868e96;">Nationality :</span>
-                                                    <strong>Bangladesh</strong>
+                                                    <strong>{{cn($proposal_details,'student_details.country_name.name','')}}</strong>
                                                 </span>
                                                 <br>
                                                 <span style="font-size:10px;">
                                                     <span style="color: #868e96;">Gender :</span>
-                                                    <strong>Male</strong>
+                                                    <strong>{{\Str::ucfirst(cn($proposal_details,'student_details.gender',''))}}</strong>
                                                 </span>
                                                 <br>
                                                 <span style="font-size:10px;">
                                                     <span style="color: #868e96;">Age :</span>
-                                                    <strong>23 years 3 month</strong>
+                                                    {{-- <strong>23 years 3 month</strong> --}}
+                                                    <strong>{{ date("d M, Y", strtotime(cn($proposal_details,'student_details.dob','')))}}</strong>
                                                 </span>
                                             </div>
                                             <div class="top_right_info_box" style="width: 100%; border: 1px solid #e9f0f3; border-radius: 0.25rem; padding: 15px;  margin-right: 15px; display: grid;">
@@ -1131,7 +1132,8 @@ element.style {
                                                                     <div class="card border-0 tab-pane fade show active" id="buy" role="tabpanel" aria-labelledby="buy-login">
                                                                         <div class="row align-items-center">
                                                                             <div class="col-md-12">
-                                                                                <embed src="web/files/CRM.pdf" type="application/pdf" width="100%" height="670px"/>
+                                                                               
+                                                                                <iframe src ="{{url(asset('web/files/CRM.pdf'))}}" type="application/pdf"  width="100%" height="670px"></iframe>
                                                                             </div><!--end col-->
                                                                         </div><!--end row-->
                                                                     </div><!--end teb pane-->

+ 2 - 2
resources/views/teacher_profile.blade.php

@@ -520,7 +520,7 @@ tbody, td, tfoot, th, thead, tr {
                                             <th>Education</th>
                                             <th class="text-center">English Test</th>
                                             <th class="text-center">work History</th>
-                                            <th>Proposal  Summary</th>
+                                            <th>Proposal Summary</th>
                                             <th class="text-center">Status</th>
                                         </tr>
                                     </thead>
@@ -574,7 +574,7 @@ tbody, td, tfoot, th, thead, tr {
                                             </td>
                                             <td style="font-size: 11px;">
                                                 <div class="inner_right">
-                                                    <a href="{{ url('title') }}"><strong style="font-size:11px; color:black;">{{cn($row,'proposal.title','')}}</strong></a></br>
+                                                    <a href="{{ url('teacher-profile/title') }}/{{$row->id}}"><strong style="font-size:11px; color:black;">{{cn($row,'proposal.title','')}}</strong></a></br>
                                                     <span style="color:black;">{{cn($row,'proposal.methology','')}}</span>
                                                     <span>.</span>
                                                     <span style="color:black;">{{cn($row,'proposal.department','')}}</span>

+ 2 - 5
routes/web.php

@@ -33,11 +33,7 @@ Route::get('/dashboard', function () {
  
 Route::get('/explore', function () {
     return view('explore');
-});
-
-Route::get('/title', function () {
-    return view('title');
-});
+}); 
 
 Route::get('/Q-apply', function () {
     return view('Q-apply');
@@ -92,6 +88,7 @@ Route::post('teacher-logout', [App\Http\Controllers\TeacherAuth\LoginController:
 
 Route::group(['middleware' => ['teacher']], function() {
     Route::get('/teacher_profile', [App\Http\Controllers\TeacherHomeController::class,'teacher_profile'])->name('teacher_profile');
+    Route::get('teacher-profile/title/{id}', [App\Http\Controllers\TeacherHomeController::class,'teacher_title'])->name('teacher_title');
    
     
 });