alabtechnosoft With this modification the administrator will be able to see the user's address (provided that he has placed an order)
If you are on 2.9.1 you can download my file and place it in resources/views/admin/
Otherwise, follow this guide
Go to resources/views/admin/editUser.blade.php
Around line 54 add this code
<li class="nav-item">
<a href="#userAddresses" class="nav-link" data-toggle="tab">
<i class="icon-location3 mr-2"></i>
User Addresses
</a>
</li>
Around line 161 add this code
<div class="tab-pane fade" id="userAddresses">
<legend class="font-weight-semibold text-uppercase font-size-sm">
User Addresses
</legend>
@if(count($orders) > 0)
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>
User Addresses
</th>
<th>
Store
</th>
<th>
Order Date
</th>
</tr>
</thead>
<tbody>
@foreach($orders->reverse() as $order)
<tr>
<td>
<a href="{{ route('admin.viewOrder', $order->unique_order_id ) }}">{{ $order->address }}</a>
</td>
<td>
{{ $order->restaurant->name }}
</td>
<td class="small">
{{ $order->created_at->format('Y-m-d - h:i A')}} ({{ $order->created_at->diffForHumans() }})
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
@else
<p class="text-muted text-center mb-0">No Address Placed From This User</p>
@endif
</div>
Save 🙂