Skip to content

Commit 3955939

Browse files
committed
fix: appointment with column
1 parent ec19d10 commit 3955939

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

resources/views/backend/map/showMaps.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class="w-100 rounded-top rounded-left rounded-right shadow-top shadow-start shad
2929
</p>
3030
@canany('update map')
3131
<x-backend.ui.button class="btn-success btn-sm" type='custom'
32-
href="{{ route('user-appointments.index', ['map_id' => $map->id]) }}">Appoinments</x-backend.ui.button>
32+
href="{{ auth()->user()->role_name == 'expert' ? route('user-appointments.index', ['map_id' => $map->id, 'type' => 'consultation']) : route('user-appointments.index', ['map_id' => $map->id]) }}">Appoinments</x-backend.ui.button>
3333
@endcanany
3434
@can('update map')
3535
<x-backend.ui.button class="btn-sm" type='edit'

resources/views/backend/user/appointments.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<tr>
2424
<th>#</th>
2525
<th>User Info</th>
26-
@if ($appointments->first() && method_exists($appointments->first(), 'expertProfile'))
26+
@if (request('type') == 'consultation')
2727
<th>Appointment With</th>
2828
@endif
2929
<th>Date & Time</th>
@@ -59,7 +59,7 @@
5959
</p>
6060
</div>
6161
</td>
62-
@if ($appointment->expertProfile)
62+
@if(request('type') == 'consultation')
6363
<td>
6464
<p class="mb-1">
6565
<strong>Expert Name:</strong> <span>{{ $appointment->expertProfile?->name }}</span>

resources/views/backend/user/appointmentsApproved.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<tr>
2424
<th>#</th>
2525
<th>User Info</th>
26-
@if ($appointments->first() && method_exists($appointments->first(), 'expertProfile'))
26+
@if (request('type') == 'consultation')
2727
<th>Appointment With</th>
2828
@endif
2929
<th>Date & Time</th>
@@ -60,7 +60,7 @@
6060
</p>
6161
</div>
6262
</td>
63-
@if ($appointment->expertProfile)
63+
@if(request('type') == 'consultation')
6464
<td>
6565
<p class="mb-1">
6666
<strong>Expert Name:</strong> <span>{{ $appointment->expertProfile?->name }}</span>

resources/views/backend/user/appointmentsCompleted.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<tr>
2424
<th>#</th>
2525
<th>User Info</th>
26-
@if ($appointments->first() && method_exists($appointments->first(), 'expertProfile'))
26+
@if (request('type') == 'consultation')
2727
<th>Appointment With</th>
2828
@endif
2929
<th>Date & Time</th>
@@ -59,7 +59,7 @@
5959
</p>
6060
</div>
6161
</td>
62-
@if ($appointment->expertProfile)
62+
@if(request('type') == 'consultation')
6363
<td>
6464
<p class="mb-1">
6565
<strong>Expert Name:</strong> <span>{{ $appointment->expertProfile?->name }}</span>

0 commit comments

Comments
 (0)