@role('admin')
  • @if (Route::current()->getName() == 'agents.edit')
    Agent Details
    @else Agent Details @endif
  • @else
  • @if (Route::current()->getName() == 'agents.profile.edit')
    Agent Details
    @else Agent Details @endif
  • @endrole @role('admin')
  • @if (Route::current()->getName() == 'agents.documents.edit')
    Agent Documents
    @else Agent Documents @endif
  • @else
  • @if (Route::current()->getName() == 'agents.profile.documents.edit')
    Agent Documents
    @else Agent Documents @endif
  • @endrole